in reply to how to get the size of a 2D array
$#{$array_name[2]}+1 [download]
That only works as long as no-one has changed the value in $[. I know that no-one should be playing with that value, but it's always possible that they have.
Why use a potentially inaccurate method, when a simpler, accurate one exists?
Perl Training in the UK <http://www.iterative-software.com>