Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

(zdog) Re: (2) Sorting Arrays

by zdog (Priest)
on Jun 26, 2000 at 10:51 UTC ( [id://19811]=note: print w/replies, xml ) Need Help??


in reply to Re: Sorting Arrays
in thread Sorting Arrays

Thanks for the help. And now that I think about it, I probably should have got it on my own, but when I go into unchartered territory (functions that I have never used before), my brain freezes. Thanks again.

-- zdog (Zenon Zabinski)
   Go Bells!! '¿'

Replies are listed 'Best First'.
RE: RE: Re: Sorting Arrays
by dumrats (Initiate) on Jun 26, 2000 at 12:59 UTC
    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://19811]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (5)
As of 2024-03-29 10:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found