Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re^4: How to create a new array with the same name as an existing one in a loop? (updated)by AnomalousMonk (Archbishop) |
on Aug 15, 2021 at 18:32 UTC ( [id://11135863]=note: print w/replies, xml ) | Need Help?? |
i want to be able to copy everything. Why? Why not just create a new array reference each time through the loop? Again, I don't think we have a good idea of your true requirement. Please see Short, Self-Contained, Correct Example. Update: In any event, searching with "deep copy" on MetaCPAN brings up Clone (update: and Clone::PP), about which I know nothing. Give a man a fish: <%-{-{-{-<
In Section
Seekers of Perl Wisdom
|
|