Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Variable interpolation in a file to be read in

by zwon (Monsignor)
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.


Comment on Re: Variable interpolation in a file to be read in
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://930011]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (10)
As of 2015-07-01 21:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (22 votes), past polls