Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
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?
[Corion]: My household somewhat becomes a Dell stronghold since I threw out HP for not wanting to scan documents because of an empty ink cartridge ;)
[1nickt]: Wow. I had heard about the chips on HP cartriddges but not that issue. I rejected HP's equivalent laptop becuase of build quality, very plasticky keyboard. And I believe HP is the champon of bloatware, too.

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (11)
As of 2017-03-27 13:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (320 votes). Check out past polls.