Perl Monk, Perl Meditation | |
PerlMonks |
Re: 2 dimensional array questionby ysth (Canon) |
on Sep 05, 2005 at 14:26 UTC ( [id://489233]=note: print w/replies, xml ) | Need Help?? |
Arrays elements and hash values can only be scalars, not hashes or arrays. When something is called an array of arrays or a two-dimensional array, this is short for array of references to arrays. This means they
are assigned like:
To copy the referred to array, you'd do
In Section
Seekers of Perl Wisdom
|
|