is the index of the last element
in the array. This is never the length of the array
itself (unless you've mucked with $[
, but don't
do that). The best way to get the length of an array is to
evaluate it in scalar context.
Second, they haven't defined what the "length" of the two
dimensional array is, so it's very difficult to answer the
question. Is "length" the length of the longest sub-array?
The number of elements in the the main array? The total
of all "end level" elements in the array? So maybe your
definition of length is what he needs and maybe it isn't.
already illustrated the issues with the
length concepts in another replay: each of the N different
Sub-arrays could have different lengths from each other.