Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Sort on Number Embedded in String

by iradik (Novice)
on Mar 23, 2005 at 05:51 UTC ( [id://441698]=note: print w/replies, xml ) Need Help??


in reply to Sort on Number Embedded in String

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..

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (5)
As of 2024-04-24 19:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found