in reply to Regex Substitution, Interpolating on the RHS?
my $repl = '"foo$1bar"'; $a = '12345'; $a =~ s/(23)/$repl/ee; print $a,"\n"; $ ./perl /tmp/p 1foo23bar45 $
Dave.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Regex Substitution, Interpolating on the RHS?
by Cody Pendant (Prior) on Jul 18, 2005 at 12:04 UTC | |
by diotalevi (Canon) on Jul 18, 2005 at 13:04 UTC |