Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

(Ovid) Re: Orcish Maneuver

by Ovid (Cardinal)
on Dec 06, 2001 at 23:16 UTC ( #130032=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my @sorted = sort {
        ( $times{$a} ||= -M $a ) <=>
        ( $times{$b} ||= -M $b )
    } @old_array;
    
  2. or download this
    for ( @old_array ) {
        $times{ $_ } = -M $_;
    }
    
    my @sorted = sort { $times{$a} <=> $times{$b} } @old_array;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://130032]
help
Chatterbox?
talexb mutters, "Those darned cosmic rays.", then gets back to coffee and code. There's plenty of both to go around.

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (8)
As of 2017-04-25 14:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (454 votes). Check out past polls.