Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Advanced Sorting - GRT - Guttman Rosler Transform

by demerphq (Chancellor)
on Feb 15, 2002 at 10:47 UTC ( #145659=perlmeditation: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my @words=qw(The time has come the Walrus said to speak of many things
    +);
    my @sorted=map { pop @$_ }
               sort{ $a->[0] <=> $b->[0] ||
                     $a->[1] cmp $b->[1] }
               map { [tr/eE/eE/,$_] } @words;
    
  2. or download this
    my @sorted=map  { substr($_,4) }
               sort 
               map  { pack("LA*",tr/eE/eE/,$_) } @words;
    

Log In?
Username:
Password:

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

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

    Is guessing a good strategy for surviving in the IT business?





    Results (177 votes), past polls