[Perl] Multidimensional arrays

Gabor Szabo gabor at tracert.com
Tue Feb 26 07:17:15 PST 2002


$a[0] = 3;
$a[1][2] = 5;     # icreated a 2 dimensional array
$a[1][3][5] = 7;  # and redimensioned it :)

# but you still the previous two entries as well.

multidimensional arrays (and hashes) are implemented by
references and everything is automagical.

see also 
perldoc perlref
perldoc perldsc

-- Gabor


On 2002.02.26 16:48 genmen at post.tau.ac.il wrote:
> I meant creating an array, redimensioning etc. 



More information about the Perl mailing list