in reply to Re: How cand I find each dimension x,y,z of a 3D arrays
in thread How cand I find each dimension x,y,z of a 3D arrays

Just curious, but couldn't this be accomplished with

$#{$array_to_count{$index}}+1
as well, instead of using the while loop?

That way the code would be

sub getSecondArraySize { # receives the argument my ($index, %array_to_count) = @_; # return the count return $#{$array_to_count{$index}}+1; }
Thoughts,
-v
"Perl. There is no substitute."