in reply to Sorting Array of dates in PERL
Is there a way I can sort these Date Strings in ascending or descending order?
Sure, see perldoc -f sort.
sort can sort numerical strings in ascending: { $a <=> $b } and descending { $b <=> $a } order.
You may find a multitude of Time and Date modules on CPAN if you feel strings aren't handy enough.
Cheers, Sören
|
|---|