Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

RE: RE: Re: Sorting Arrays

by dumrats (Initiate)
on Jun 26, 2000 at 12:59 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (6)
As of 2024-04-23 13:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found