Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
(except that doesn't work.)$lhs = '(.)oo'; $rhs = '\1ar'; s/$lhs/$rhs/; # I want to turn foo into far
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How can I combine backreferences and regex interpolation?
by mdillon (Priest) on Sep 20, 2000 at 19:16 UTC | |
|
RE: How can I combine backreferences and regex interpolation?
by knight (Friar) on Sep 20, 2000 at 19:25 UTC | |
|
Re: How can I combine backreferences and regex interpolation?
by rpc (Monk) on Sep 21, 2000 at 01:01 UTC |