Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Comparing spaceships (cmp and <=> as options)

by moritz (Cardinal)
on May 20, 2013 at 15:41 UTC ( #1034353=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    \sub {<=>}
    
  2. or download this
    #!/usr/bin/perl
    use strict;
    ...
    my @sorted = sort { $sorter->($a->[$elem], $b->[$elem]) } @records;
    
    say join "\t", @$_ for @sorted;
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (17)
As of 2014-07-31 18:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (250 votes), past polls