Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: (Date::Manip) Re: sorting mm/dd/yy

by merlyn (Sage)
on Dec 15, 2000 at 04:13 UTC ( [id://46762]=note: print w/replies, xml ) Need Help??


in reply to (Date::Manip) Re: sorting mm/dd/yy
in thread sorting mm/dd/yy

That'd be incredibly expensive for more than a few dates though. So, if you have, say, more than 5 or 10 dates, then Use The Power Of The Schwartz:
my @sorted_dates = map $_->[0], sort { Date_Cmp($a->[1], $b->[1]) } map [$_, ParseDate($_)], @dates;

-- Randal L. Schwartz, Perl hacker

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://46762]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (4)
As of 2024-04-24 05:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found