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>
In reply to Re: Re: how to get the size of a 2D array
by davorg
in thread how to get the size of a 2D array
by richmusk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |