You could also use a date parsing module such as Date::Parse and do a Schwartzian Transform:
use Date::Parse; # ... my @statements = map { $_->[1] } sort { $a->[0] <=> $b->[0] } map { [ str2time($_->{'statement_date'}), $_ ] } @statements;
Other date-parsing modules that might be of interest include Date::Manip, HTTP::Date, and Time::ParseDate.
In reply to Re^3: Sorting an Array
by AppleFritter
in thread Sorting an Array
by burgerc
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |