Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: How do I sort something by date?

by St{) (Initiate)
on Oct 20, 2002 at 04:57 UTC ( #206622=note: print w/replies, xml ) Need Help??


in reply to How do I sort something by date?

Actually the best idea would be to look at Schwartz's Learning Perl (3rd) book.

It tells you in Chapter 15 how to make perl  sort according to what you want. The default is the (weird) ASCIIbetical method. In that method Caps come before lower case letters, and punctuation comes in all different places. By using Chapter 15's lesson you can make it sort to however YOU want it to (yes, even your date idea).

<STDIN>

Originally posted as a Categorized Answer.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (5)
As of 2022-06-27 11:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My most frequent journeys are powered by:









    Results (88 votes). Check out past polls.

    Notices?