Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Schwartzian Transform

by I0 (Priest)
on Jan 02, 2001 at 18:06 UTC ( #49288=note: print w/ replies, xml ) Need Help??


in reply to Schwartzian Transform

You probably meant @temp = sort { $a->[0] <=> $b->[0] } @temp;

Although, given a @temp array, it benchmarks faster to do

@temp = map { length $_ } @strings; @sorted = @strings[sort{$temp[$a]<=>$temp[$b]} $[..$#temp];


Comment on Re: Schwartzian Transform
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (10)
As of 2014-07-12 23:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (242 votes), past polls