Similar:
eval($variable) || print "ERROR: $@";
Except I don't want to the contents of $variable to be run. Just want to check the syntax for errors.
Thanks,
the mad hatter
In reply to Syntax Error Checking by madhatter
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |