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


in reply to Counting elements in array

This might be the most easiest question in perl. You can get array size by any of the following

my $size = @array; print $size;

or

print scalar @array;