[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

Re: length of array



Hi,

If the array name is @foo, then the length of the array is $#foo.
$#foo returns the index value of the last element of @foo.

Regards,
Krishna.

> Hi all,
> 
> How do i find the length of an array in perl?
> 
> Thanks in advance
> 
> Adityan
> _________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
> 
> 
> ---------------------------------------------
> LIP is all for free speech.  But it was created
> for a purpose.  Violations of the rules of
> this list will result in stern action.