Could it be the hash reference you use to the subroutine? \$hash ? Thanks.$string = '$a $b $c'; $hash{a} = "go"; $string =~ s{\$(\w+)}{$$hash{$1}}ge;
In reply to Re^2: Replacing string with regexp without using modules
by cowgirl
in thread Replacing string with regexp without using modules
by cowgirl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |