Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^4: Custom Sort An AoA

by LanX (Chancellor)
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 rifling through the Monastery: (6)
As of 2016-02-13 08:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?





    Results (422 votes), past polls