Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: testing an if statement in a string

by Limbic~Region (Chancellor)
on Oct 31, 2013 at 14:20 UTC ( [id://1060583]=note: print w/replies, xml ) Need Help??


in reply to testing an if statement in a string

brcjacks,

eval

It is generally considered very dangerous to evaluate code that your program didn't generate itself. This is because of the potential to introduce code you didn't expect. If you are obtaining this scalar externally, I would highly recommend you read about tainting as well.

Cheers - L~R

  • Comment on Re: testing an if statement in a string

Replies are listed 'Best First'.
Re^2: testing an if statement in a string
by brcjacks (Initiate) on Oct 31, 2013 at 14:59 UTC
    I have control over the input. It's coming from a database that I, or other developer, populate. Basically, I'm building a series of these tests based on db records. Thanks for the tip.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (6)
As of 2024-04-25 15:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found