more useful options | |
PerlMonks |
Re: Multi-Dimensional Arrays and Array Referencesby johngg (Canon) |
on Nov 16, 2020 at 15:34 UTC ( [id://11123694]=note: print w/replies, xml ) | Need Help?? |
my @table2 = [[7, 8, 9], [10, 11, 12]]; # using array To assign to an array you need parentheses, not square brackets.
The following code might help you with accessing array references.
I hope this is helpful. Cheers, JohnGG
In Section
Seekers of Perl Wisdom
|
|