The evaluation done in the second substitution replaces the variable interpolation that is taking place in the first substitution.$text2 =~ s/$match/$replace/; $text2 =~ s/$match/$replace/e;
In reply to Re: Regular expression "replace string interpolation" problem
by pc88mxer
in thread Regular expression "replace string interpolation" problem
by cLive ;-)
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |