Output should be:$string = 'fred' %substitution = ( 2 => 'xy' 3 => 'ab' ) someFunction($string, %substitution); print;
fred fxed fyed frad frbd fxad fxbd fyad fybd
In reply to String Replace - Permutation, Combination? by cbdoc
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |