or better perhaps:
my @out = map {substr ($_, 0, -1) . 'x'} @in;
Prints:
aaa bbb ccc => aax bbx ccx
In reply to Re^2: Using regex in Map function
by GrandFather
in thread Using regex in Map function
by narashima
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |