Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

RE: RE: Re: Sorting Arrays

by dumrats (Initiate)
on Jun 26, 2000 at 12:59 UTC ( #19820=note: print w/replies, xml ) Need Help??


in reply to (zdog) Re: (2) Sorting Arrays
in thread Sorting Arrays

if array#num is really a number, <=> might be a better option ...
@array = sort { $$a[2] <=> $$b[2] } @array;
--
Greg McCarroll
http://www.mccarroll.uklinux.net

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (5)
As of 2022-05-18 13:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (70 votes). Check out past polls.

    Notices?