Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: fast, flexible, stable sort

by bart (Canon)
on Feb 12, 2004 at 20:46 UTC ( #328658=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use Data::Dumper;
    $Data::Dumper::Useqq = 1;
    my @data = map "\0" x $_, 0 .. 5;
    print Dumper [ sort @data ],
      [ sort map pack("a*N", $data[$_], $_), 0 .. $#data ];
    
  2. or download this
    $VAR1 = [
              "",
    ...
              "\0\0\0\0\0\2",
              "\0\0\0\0\1"
            ];
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (10)
As of 2014-08-21 12:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (135 votes), past polls