Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
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?
[choroba]: To avoid accidental overwriting of the variable in if ($x = 3)
[karlgoethebier]: Corion: Auch in hessisch? Mer wasses net.
[Corion]: Hmm - I'm not sure, I haven't read the mundart/slang translations ;)
[Eily]: $F[1] =~ s/^0//r could be written as (0+$F[1]). It's less explicit though
[Discipulus]: ah! seems wise choroba, you play safe
[shmem]: Eily: also -+-$F[1]
[shmem]: hmm... there should be a glyph for "bembel" in unicode "miscellaneous symbols"
[karlgoethebier]: shmem: ++1000. Also for Schöppsche

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (12)
As of 2017-05-24 08:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?