madhatter has asked for the wisdom of the Perl Monks concerning the following question:
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
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Syntax Error Checking
by chromatic (Archbishop) on Jan 01, 2001 at 13:50 UTC | |
by merlyn (Sage) on Jan 01, 2001 at 22:04 UTC | |
by OeufMayo (Curate) on Jan 02, 2001 at 14:46 UTC | |
by merlyn (Sage) on Jan 02, 2001 at 19:31 UTC | |
Re: Syntax Error Checking
by Fastolfe (Vicar) on Jan 01, 2001 at 22:01 UTC | |
Re: Syntax Error Checking
by Fastolfe (Vicar) on Jan 01, 2001 at 21:56 UTC | |
by tilly (Archbishop) on Jan 01, 2001 at 22:01 UTC | |
Re: Syntax Error Checking
by cpatti (Initiate) on Sep 14, 2001 at 23:44 UTC |