You need to access the proper element and dereference it.Yes, but why in such a difficult way?
print ${$array[2]}[0],$/; # 1can be written as print $array[2]->[0], $/; where you can then even leave out the '->' as it stands between two subscripts, leading to print $array[2][0], $/;
-- Hofmator
In reply to Re: Re: Multi dimensional arrays
by Hofmator
in thread Multi dimensional arrays
by phatbasturd
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |