Perl: the Markov chain saw | |
PerlMonks |
Re: How to store arrays in another arrayby Fletch (Bishop) |
on Oct 03, 2019 at 18:19 UTC ( [id://11107019]=note: print w/replies, xml ) | Need Help?? |
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.
In Section
Seekers of Perl Wisdom
|
|