in reply to Re: Multi dimensional arrays
in thread Multi dimensional arrays
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Multi dimensional arrays
by Mr. Muskrat (Canon) on Feb 10, 2003 at 14:00 UTC | |
by Hofmator (Curate) on Feb 10, 2003 at 14:54 UTC |