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

Re: sorting a file by a date:"YYYY-MM-DD" field with cmp

by GotToBTru (Prior)
on Jun 16, 2015 at 17:53 UTC ( #1130656=note: print w/replies, xml ) Need Help??


in reply to sorting a file by a date:"YYYY-MM-DD" field with cmp

Pull out only the date lines using grep.

@events = sort sortByDate grep { /date:/ } @events;
Dum Spiro Spero

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (5)
As of 2022-01-24 20:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (65 votes). Check out past polls.

    Notices?