|
|
| Come for the quick hacks, stay for the epiphanies. | |
| PerlMonks |
Re: How to substitute the elements in an array without changing the original array.by shotgunefx (Parson) |
| on Dec 01, 2006 at 01:19 UTC ( [id://587135]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
And to add to these fine comments for future reference, they only really apply to simple scalars (strings, numbers), array references, hash references, etc are a slightly trickier matter.
You would need to make copies of the data itself and not just the references to the data -Lee "To be civilized is to deny one's nature."
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||