But what you're really asking for is something other than map here, I think...print "$_\n" for map { .=subst(/er/, 'aler', :global) } @w;
In reply to Re^2: Perl oddities (s/// doesn't DWIM in map)
by TimToady
in thread Perl oddities
by brian_d_foy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |