|
|
|
Clear questions and runnable code get the best and fastest answer |
|
| PerlMonks |
Re: Multidimensional arrays within arraysby Kenosis (Deacon) |
| on Jan 22, 2013 at 19:09 UTC ( #1014765=note: print w/ replies, xml ) | Need Help?? |
|
Perhaps the following structure would be helpful:
Output:
A reference to a reference to three values from @list and a reference to a four-element list is push onto @array. The for loop iterates through the list of references, and prints their dereferenced values. A dump of @array shows the structure. Within the for loop, elements can be access as follows:
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||