Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

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

by blazar (Canon)
on Dec 27, 2005 at 14:30 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://519333]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (4)
As of 2024-04-26 01:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found