Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Golf: Arbitrary Alphabetical Sorting

by merlyn (Sage)
on May 09, 2001 at 20:01 UTC ( #79137=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub o {
      my ($a, $w) = @_;
    ...
      my $v = join "", values %m;
      map { eval "tr/$v/$k/"; $_ } sort map { eval "tr/$k/$v/"; $_ } @$w;
    }
    
  2. or download this
    sub o {
      my ($a, $w) = @_;
    ...
      map { eval "tr/$v/$k/"; $_ } sort map { eval "tr/$k/$v/"; $_ } @$w;
    }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (10)
As of 2014-11-26 07:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (164 votes), past polls