Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: schwartzian transform and sorting on two columns

by salva (Canon)
on Sep 08, 2005 at 08:07 UTC ( [id://490140]=note: print w/replies, xml ) Need Help??


in reply to schwartzian transform and sorting on two columns

forget about the Schwartzian transform and use Sort::Key:
use Sort::Key::Maker sn_keysort => qw(str num); my @sortedarry = sn_keysort { (split /\t/)[8, 21] } @foo;

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://490140]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (5)
As of 2024-04-18 09:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found