in reply to Pass Matched Variable into Regex Replace Variable
You could do
... my $replace = '"To {$1}"'; $text =~ s/$pattern/$replace/gee; # eval twice
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Pass Matched Variable into Regex Replace Variable
by deMize (Monk) on Dec 17, 2010 at 18:29 UTC | |
by Anonyrnous Monk (Hermit) on Dec 17, 2010 at 18:34 UTC | |
by deMize (Monk) on Dec 17, 2010 at 20:25 UTC |