in reply to ReturnDate.pm

Alternatively, you can use core module List::Util's min and max functions on the values returned by various functions including