Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^2: Unusual sorting requirements; comparing three implementations.

by afoken (Monsignor)
on Oct 24, 2012 at 11:19 UTC ( #1000608=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub x {
        my @sorted = map $_->[1],
    ...
            $_->title eq 'Manager' ? 'A'.$_->name : 'B'.$_->name, $_
        ], @employees;
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1000608]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2017-03-29 05:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (343 votes). Check out past polls.