in reply to Using scalar variables as substitution regular expression
2) Can someone explain why and what would be the correct expression?
Its basic "interpolation".
Interpolating backreferences in an eval,
reinterpolation of regexp (and strings?),
Evaluating $1 construct in literal replacement expression,
|
|---|