> "TB" == Thomas Bätzler writes:
TB> You can do something like
TB> my $cond = eval( $statement );
TB> The two important things to keep in mind:
TB> 1) Make sure you sanitize $statement very carefully. Otherwise people can
run arbitrary perl commands and you probably don't want t
sillymonkeysoftw...@gmail.com asked:
> I'm working with some customizable data from a config file, and can't
> for the life of me figure out how to test conditionals from an
> external source.
> Does anyone have an idea how to accomplish something like:
>
> my $statement = "1 < 10 and 2 > 1