Re: sort arrays by size

2002-07-07 Thread John W. Krahn
Patricia Hinman wrote: > > Does anyone know of a routine that will sort arrays by > size. I need to sort any number of given arrays, and > operate on the largest to the smallest. > > I've just recently learned of the > @nums = sort{$a<=>$b} @numbers; > > hope the answer for arrays is as simple

Re: sort arrays by size

2002-07-07 Thread Todd Wade
"Bob Ackerman" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > On Monday, July 8, 2002, at 12:46 AM, Todd Wade wrote: > > > > > "Patricia Hinman" <[EMAIL PROTECTED]> wrote in message > > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > >> Does anyone know of a

Re: sort arrays by size

2002-07-07 Thread bob ackerman
On Monday, July 8, 2002, at 12:46 AM, Todd Wade wrote: > > "Patricia Hinman" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... >> Does anyone know of a routine that will sort arrays by >> size. I need to sort any number of given arrays, and >> operate on the l

RE: sort arrays by size

2002-07-07 Thread Toby Stuart
Hi Patricia, Whilst this does not answer your question in full it should act as a starting point. @array = qw(1 2 3 4); # four elements print $#array+1; # will print 4 HTH Toby "Patricia Hinman" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Does anyone kn

Re: sort arrays by size

2002-07-07 Thread Todd Wade
"Patricia Hinman" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Does anyone know of a routine that will sort arrays by > size. I need to sort any number of given arrays, and > operate on the largest to the smallest. > > I've just recently learned of the > @n