max said:
I'm not sure that I understand.
In Perl I must use "arrays of arrays" to make multidimensional array?
Correct. Or rather almost correct because "array of array" is actually a
sloppy term for "array of references to arrays".
Is that mean:
In Perl
$array[3][3]
In Basic is
DIM array (3,3)
No. $array[3][3] is one individual/specific element of a nested array (it
just happens to be the third element in the third array). Your Basic
statement on the other hand declares a multidimensional array with 3x3
elements. Two completely different things.
The closest corresponding Perl code would be
my @array;
but that neither indicates the size (the size of Perl arrays is dynamic) nor
that the values will be references to arrays (Perl doesn't care).
jue