Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Variable interpolation in a file to be read in

by zwon (Abbot)
on Oct 06, 2011 at 15:58 UTC ( #930011=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://930011]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (9)
As of 2017-11-18 12:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (277 votes). Check out past polls.

    Notices?