Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
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?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (3)
As of 2016-12-10 21:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (165 votes). Check out past polls.