go ahead... be a heretic | |
PerlMonks |
Re: How to find number of elements of an array from array referenceby moritz (Cardinal) |
on Apr 07, 2011 at 14:41 UTC ( [id://898079]=note: print w/replies, xml ) | Need Help?? |
length is for getting string lengths. To get the number of elements, simply use the array in scalar context:
In Section
Seekers of Perl Wisdom
|
|