Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: How to substitute the elements in an array without changing the original array.

by shotgunefx (Parson)
on Dec 01, 2006 at 06:19 UTC ( #587135=note: print w/ replies, xml ) Need Help??


in reply to How to substitute the elements in an array without changing the original array.

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."


Comment on Re: How to substitute the elements in an array without changing the original array.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://587135]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (17)
As of 2014-12-18 14:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (56 votes), past polls