in reply to Regular expression "replace string interpolation" problem
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;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Regular expression "replace string interpolation" problem
by Anonymous Monk on Mar 31, 2009 at 15:58 UTC |