my @newList = @list; s/_string$// for @newList
Or just:
s/_string$// for my @newList = @list;
In reply to Re^2: using map and swap (aka substitute)
by jwkrahn
in thread using map and swap (aka substitute)
by DamianKaelGreen
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |