Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
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 examining the Monastery: (8)
As of 2015-03-28 12:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When putting a smiley right before a closing parenthesis, do you:









    Results (625 votes), past polls