Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
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 chilling in the Monastery: (5)
As of 2016-09-25 11:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (469 votes). Check out past polls.