Beefy Boxes and Bandwidth Generously Provided by pair Networks Cowboy Neal with Hat
Welcome to the Monastery
 
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 perusing the Monastery: (14)
As of 2014-04-17 15:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (451 votes), past polls