On Tue, 2002-09-17 at 12:37, pravesh biyaNI wrote:
> 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
Short answer: yes.
Long Answer: There are arrays can hold sc
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 p