Syntactic Confectionery Delight | |
PerlMonks |
Re: How do I sort something by date?by St{)ìÑ (Initiate) |
on Oct 20, 2002 at 04:57 UTC ( [id://206622]=note: print w/replies, xml ) | Need Help?? |
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.
In Section
Seekers of Perl Wisdom
|
|