|P is for Practical|
Length of 2-dimensional arrayby feloniousMonk (Pilgrim)
|on Apr 05, 2001 at 22:52 UTC||Need Help??|
feloniousMonk has asked for the
wisdom of the Perl Monks concerning the following question:
How do I efficiently find the length of a 2 dimensional array?
I have an array @array[variable#] and I need to determine the variable number.
I currently do a foreach with a counter, as a scalar() call or $scalar = @array yield only the width of the array.
Is there a known Perl goodie that can do this, or am I doing this the best way?