LMPX.COM |
Home | Linux | Mysql | PHP | XML | ||
|
|
|||
From: Li, Jialin Date: Wed May 14 15:07:42 2008 Subject: Re: items in array
On Wed, May 14, 2008 at 4:01 PM, Tech list <tech_list@womenshealth.com> wrote: > what is the correct way to get the number of items in an array? > > I used to use $#array > > > -- > To unsubscribe, e-mail: beginners-unsubscribe@perl.org > For additional commands, e-mail: beginners-help@perl.org > http://learn.perl.org/ > > > $#array is the index of the last item, so the number should be $#array + 1, or scalar @array
| Navigate in group perl.beginners at sever nntp.perl.org | |
| Previous | Next |
| © No Copyright You are free to use Anything |
Site Maintained by PHP Developer
Powered By PHP Consultants |