... and using the /r substitution modifier of 5.14+:
>perl -wMstrict -le "printf qq{'$_' } for glob('ferber' =~ s{e}{{e,a}}xmsgr); " 'ferber' 'ferbar' 'farber' 'farbar'
In reply to Re^2: Substitution of a particular letter in all combinations of positions in word (see inside)
by AnomalousMonk
in thread Substitution of a particular letter in all combinations of positions in word (see inside)
by Doctrin
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |