Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

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) }
               map  { pack("LA*",tr/eE/eE/,$_) } @words;

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlmeditation [id://145659]
Approved by root
[shmem]: your scanner is pre-loaded ;-)
[shmem]: anyways, do as is your wont. I won't fight western hypocresy anymore - for today. Let's call that a day, and done.
[erix]: yeah, scanning pre-loaded. I wouldn't have it any other way. As I say, my attention is a rare commodity, jealously guarded.
[erix]: ok, ok. happy pipe-dreams :P
[shmem]: have a good time inside your information bubble.

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (6)
As of 2018-03-19 21:12 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (246 votes). Check out past polls.