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


in reply to Variable interpolation in a file to be read in

What if some of these variables have value like this:

Robert');drop table students; --
http://xkcd.com/327/

Seriously, your idea doesn't look especially elegant to me. You should somehow control which variables can be used in your file to avoid occasional collisions. Also you should escape values if they contain special characters.