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

Re^4: Custom Sort An AoA

by LanX (Bishop)
on Apr 01, 2014 at 18:42 UTC ( #1080624=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub cmp_vec  {
       # return either -1,0 or 1 comparing over two equally sized arrays
    ...
    
    
    sort { @$a <=> @$b or cmp_vec($a,$b) } @list;
    
  2. or download this
    sub cmp_vec {
     my ($a,$b) = @_;
    ...
      }
      return 0;
    ]
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1080624]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2017-11-18 22:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (278 votes). Check out past polls.

    Notices?