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
as well, instead of using the while loop?$#{$array_to_count{$index}}+1
That way the code would be
Thoughts,sub getSecondArraySize { # receives the argument my ($index, %array_to_count) = @_; # return the count return $#{$array_to_count{$index}}+1; }
|
|---|