You want to store a reference to the array. $rows[0] = \@row1; or push @rows, \@row1; for example. See perlref, perldsc, perllol.
Additionally: referencing a single element of an array with a @ sigil is (pretty much always) wrong; if you mean a single element use $foo[$idx].
The cake is a lie.
The cake is a lie.
The cake is a lie.
In reply to Re: How to store arrays in another array
by Fletch
in thread How to store arrays in another array
by kwatts59
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |