Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^2: How to substitute the elements in an array without changing the original array. - map

by perladdict (Chaplain)
on Dec 01, 2006 at 08:34 UTC ( #587141=note: print w/ replies, xml ) Need Help??


in reply to Re: How to substitute the elements in an array without changing the original array. - map
in thread How to substitute the elements in an array without changing the original array.

@a=("sedam","medam","kadam","sadam"); for(@b=@a) { s/dam/lam/; } print "@b\n"; print "@a";
Comment on Re^2: How to substitute the elements in an array without changing the original array. - map
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (11)
As of 2016-05-05 20:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?