Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
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?
[TCLion]: DateTime::Format:: Flexible seems to have a lot of dependents, taking a while to install

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (16)
As of 2017-03-23 15:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (289 votes). Check out past polls.