in reply to Re: Sorting according to date
in thread Sorting according to date
First you assume the date format he is using and then you go on to suggest a byzantine method of sorting dates in that format...
If his dates really are in a format like "DD.MM.YYYY" then Date::Calc is hardly necessary:
my @sorted = map { $_->[0] } sort { $a->[1] <=> $b->[1] } map { [ $_, join "", reverse (split /\./) ] } @dates;
-sauoq "My two cents aren't worth a dime.";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Sorting according to date
by hipe (Sexton) on Jun 10, 2003 at 11:11 UTC | |
by campbell (Beadle) on Jun 12, 2003 at 15:33 UTC |