my $repl = '"foo$1bar"'; $a = '12345'; $a =~ s/(23)/$repl/ee; print $a,"\n"; $ ./perl /tmp/p 1foo23bar45 $
Dave.
In reply to Re: Regex Substitution, Interpolating on the RHS?
by dave_the_m
in thread Regex Substitution, Interpolating on the RHS?
by Cody Pendant
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |