you can simulate md arrays with references. 
your line of code actually sets an element of the md array
to obtain the value stored at the "pointed to" memory location you
dereference it like:
print $elements[0][0]; 
or
print $elements[0]->[0];

if you need to push on array onto another, you must push it as a reference ,
like this:
push @AoA, [ @another ];
there are several methods to dereference depending on what you need to do
checkout 'perldoc perlreftut' for more info. if you have the programming
perl book -3rd edition, chap 8-9 explain it all very nicely





> -----Original Message-----
> From: pravesh biyaNI [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, September 17, 2002 12:37 PM
> To: Perl beginners
> Subject: multidimensional arrays in PERL
> 
> 
> Hi'
>            Are there multidimensional arrays in Perl.
> 
> for e.g can we write the way we write in C
> 
> $elements[0][0]= something;
> 
> 
> etc..etc..
> 
> regards
> pravesh
> 
> 
> -- 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to