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

Re: length of array



Krishna Srinivasan wrote:

> Hi,
>
> If the array name is @foo, then the length of the array is $#foo.

$#foo + 1


>
> $#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.
>
> ---------------------------------------------
> An alpha version of a web based tool to manage
> your subscription with this mailing list is at
> http://lists.linux-india.org/cgi-bin/mj_wwwusr