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