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.