use List::Util qw/sum/; my $num = sum map scalar @{$_}, @array; [download]
In reply to (ar0n) Re: how to get the size of a 2D array by ar0n in thread how to get the size of a 2D array by richmusk