"be consistent" | |
PerlMonks |
Re: Sort on Number Embedded in Stringby iradik (Novice) |
on Mar 23, 2005 at 05:51 UTC ( [id://441698]=note: print w/replies, xml ) | Need Help?? |
i'm suprised at all the solutions.. anyway, just write a better cmp function for sort.. pass a glob into sort, use Date::Manip if you don't care about efficiency. strip the dates right out of the filename and make sure the date is parse-able and pass it into Date::Manip::ParseDate.. this is like a 0ne liner..
In Section
Seekers of Perl Wisdom
|
|