cbdoc has asked for the wisdom of the Perl Monks concerning the following question:
Output should be:$string = 'fred' %substitution = ( 2 => 'xy' 3 => 'ab' ) someFunction($string, %substitution); print;
fred fxed fyed frad frbd fxad fxbd fyad fybd
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: String Replace - Permutation, Combination?
by ikegami (Patriarch) on Dec 14, 2010 at 03:52 UTC | |
by cbdoc (Novice) on Dec 14, 2010 at 22:32 UTC | |
|
Re: String Replace - Permutation, Combination?
by Marshall (Canon) on Dec 14, 2010 at 01:22 UTC | |
by ikegami (Patriarch) on Dec 15, 2010 at 02:23 UTC | |
by cbdoc (Novice) on Dec 14, 2010 at 22:34 UTC | |
|
Re: String Replace - Permutation, Combination?
by Anonymous Monk on Dec 14, 2010 at 01:04 UTC | |
|
Re: String Replace - Permutation, Combination?
by locked_user sundialsvc4 (Abbot) on Dec 14, 2010 at 14:59 UTC |