Doctrin has asked for the wisdom of the Perl Monks concerning the following question:
Hello everyone!
Could you please tell me how to do the following.
Say, we have a word ferber. I wanna substitute "e" with "a" in all combinations, so that I have following words:
farber
ferbar
farbar
Maybe, there is even a "one-line" solution? Thanks in advance
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Substitution of a particular letter in all combinations of positions in word (see inside)
by LanX (Saint) on Jan 09, 2013 at 13:08 UTC | |
by AnomalousMonk (Archbishop) on Jan 09, 2013 at 14:39 UTC | |
by Doctrin (Beadle) on Jan 09, 2013 at 13:17 UTC | |
Re: Substitution of a particular letter in all combinations of positions in word (see inside)
by Anonymous Monk on Jan 09, 2013 at 13:08 UTC |
Back to
Seekers of Perl Wisdom