in reply to How do I find the size of each row of a growing multidimensional array?
Another solution (if you wanted to retain those values) would be to populate another array with the number of elements (columns) in each row of INFO_ARRAY...$row = 1; foreach (@INFO_ARRAY) { print "Row $row has " . @{$INFO_ARRAY[$_]} . "columns.\n"; $row++; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How do I find the size of each row of a growing multidimensional array?
by ozgurp (Beadle) on Mar 04, 2005 at 00:09 UTC |