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

In that case, an eval like you used above is the only way. You can use quotemeta to escape the quotes.
  • Comment on Re^3: Interpolating variables in a string

Replies are listed 'Best First'.
Re^4: Interpolating variables in a string
by halley (Prior) on Oct 14, 2004 at 16:45 UTC
    Of course, quotemeta would escape everything, including the subexpressions he wanted to interpolate...

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