in reply to Using scalar variables as substitution regular expression

1) Use code tags, never pre tags, Markup in the Monastery

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,

  • Comment on Re: Using scalar variables as substitution regular expression