You could do
... my $replace = '"To {$1}"'; $text =~ s/$pattern/$replace/gee; # eval twice
In reply to Re: Pass Matched Variable into Regex Replace Variable
by Anonyrnous Monk
in thread Pass Matched Variable into Regex Replace Variable
by deMize
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |