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;