http://www.perlmonks.org?node_id=1072566

finfan has asked for the wisdom of the Perl Monks concerning the following question:

I know this has got to have been asked before. And a search of the web gives me much the same answers, but I must be missing something.

I understand that the following:

print "Array size is @array\n";

should tell me the number of elements in the array called @array. Yet, it doesn't, it prints the elements, in order. So, how do I determine exactly how many elements have been stored in an array?