On Mon, May 20, 2002 at 04:04:34PM +0100, Jackson, Harry wrote:
> 
> 
> > -----Original Message-----
> > From: drieux [mailto:[EMAIL PROTECTED]]
> > 
> > also - if you read 'man sort' you will find that sort -n
> > understands how to do numeric sorting....
> 
> Being pedantic sort in perl is different than sort in *nix. I am sure we are
> not able to use -n in perls version, or can we.

@sorted = sort { $a <=> $b } @unsorted;    # numeric sort

-- 
Paul Johnson - [EMAIL PROTECTED]
http://www.pjcj.net

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to