Syntactic Confectionery Delight | |
PerlMonks |
Re: Best way to copy an array?by jweed (Chaplain) |
on Feb 22, 2004 at 06:22 UTC ( [id://330897]=note: print w/replies, xml ) | Need Help?? |
For non-huge arrays, this should work fine:
This will copy the elements but not alias them: i.e., it will make 2 separate arrays that happen to start out with the same elements.
In Section
Seekers of Perl Wisdom
|
|