Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
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 rifling through the Monastery: (2)
As of 2016-07-01 00:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (405 votes). Check out past polls.