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
"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
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
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
"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