@a=("sedam","medam","kadam","sadam"); for(@b=@a) { s/dam/lam/; } print "@b\n"; print "@a";
In reply to Re^2: How to substitute the elements in an array without changing the original array. - map
by perladdict
in thread How to substitute the elements in an array without changing the original array.
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |