in reply to (tye)Re: Sorting an array of strings by number
in thread Sorting an array of strings by number

Or if you're using a 5.6 or newer perl you can turn off just warnings about the numericness (see perllexwarn for more information).

my @sorted = do { no warnings 'numeric'; sort { $a <=> $b } @data ; };

Replies are listed 'Best First'.
Re: Re: (tye)Re: Sorting an array of strings by number
by Anonymous Monk on Oct 16, 2001 at 20:08 UTC
    Cheers guys, thats exactly what I needed to do.