Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: sorting entires by date

by jweed (Chaplain)
on Jan 01, 2004 at 23:15 UTC ( #318188=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    @file = map { $$_[0] } 
            sort { $$a[1] <=> $$b[1] }
            map { [$_, (split /:/)[3] ] } @file;
    
  2. or download this
    @file = map { join ':', (split /:/)[1,2,3,0] }
            sort
            map { join ':', (split /:/)[3,0,1,2] } @file;
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (14)
As of 2014-10-22 12:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (118 votes), past polls