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";
|
---|
In Section
Seekers of Perl Wisdom