If you look at an array in a scalar context, it will return the number of items:
my @array = (1, 4, 9, 16); print scalar(@array); # prints 4
Hope that helps.
In reply to Re: perl equivalent to php array count function
by atcroft
in thread perl equivalent to php array count function
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |