http://www.perlmonks.org?node_id=743129


in reply to Re: Interpolating backreferences in an eval
in thread Interpolating backreferences in an eval

Thanks you! It works.

I've tried eval "$to" but got a syntax error that I couldn't understand. Seeing that eval qq{"$to"} is the same as eval "\"$to\"" I can understand now what I've done wrong.