Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^4: Custom Sort An AoA

by LanX (Canon)
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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (17)
As of 2014-12-18 13:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (51 votes), past polls