|
|
| Do you know where your variables are? | |
| PerlMonks |
Best way to copy an array?by John M. Dlugosz (Monsignor) |
| on Feb 22, 2004 at 06:18 UTC ( #330894=perlquestion: print w/ replies, xml ) | Need Help?? |
|
John M. Dlugosz has asked for the
wisdom of the Perl Monks concerning the following question:
I need to copy an array, so that assignments made to the copy don't affect the original, but the elements reference the same things initially.
seems to be the right idea, but is going a bit out of the way. Is there a nicer way to do it? —John
Back to
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||