http://www.perlmonks.org?node_id=587141


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