Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Sorting The Date format Values without using any perl modules.

by blazar (Canon)
on Dec 27, 2005 at 14:30 UTC ( #519333=note: print w/ replies, xml ) Need Help??


in reply to Sorting The Date format Values without using any perl modules.

If your dates are precisely in that format, i.e. YYYY-MM-DD, then a plain (string-wise) sort should just do:

$ perl -le 'print for sort qw/2005-12-01 2005-11-02 2005-12-07/' 2005-11-02 2005-12-01 2005-12-07


Comment on Re: Sorting The Date format Values without using any perl modules.
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (14)
As of 2014-10-20 12:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (75 votes), past polls