OUTPUT: 4# not very imaginative, but hopefully it helps @array = qw(one two three four); # get the number of elements $number_of_elements = $#array +1; print $number_of_elements;
In reply to RE: Finding the total number of elements in an array.
by mrmick
in thread Finding the total number of elements in an array.
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |