We don't bite newbies here... much | |
PerlMonks |
Re: Regex/Sort Questionsby moritz (Cardinal) |
on Dec 05, 2007 at 18:02 UTC ( [id://655153]=note: print w/replies, xml ) | Need Help?? |
However the sort is choking (not sorting numerically) since it doesn't know how to deal with numbers like 01, 02, etc.
I don't think that is the problem, it should work fine. You are sorting by day ($3) first, then by year ($1) and finally by month ($2) - is that really what you want? BTW use \. in regexes to match a literal dot . Update: fixed description of sort order
In Section
Seekers of Perl Wisdom
|
|