Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^2: Sort over remaining part of array

by Laurent_R (Canon)
on Nov 12, 2013 at 19:57 UTC ( [id://1062261]=note: print w/replies, xml ) Need Help??


in reply to Re: Sort over remaining part of array
in thread Sort over remaining part of array

The OP said descending order, so the key codeline should probably be:

@AoA[2..$#AoA] = sort { $b->[0] <=> $a->[0] } @AoA[2..$#AoA];
But that is only a detail.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1062261]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (6)
As of 2024-03-28 20:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found