in reply to Re: Interpolating variables in a string
in thread Interpolating variables in a string

Actually, I was looking for a complete solution to tap into Perl's double quote interpolation mechanism. The solution proposed in the FAQ won't work in these cases:
'abc @var def' 'abc ${var} def' 'abc $$var def'

Replies are listed 'Best First'.
Re^3: Interpolating variables in a string
by perrin (Chancellor) on Oct 14, 2004 at 04:30 UTC
    In that case, an eval like you used above is the only way. You can use quotemeta to escape the quotes.
      Of course, quotemeta would escape everything, including the subexpressions he wanted to interpolate...

      --
      [ e d @ h a l l e y . c c ]