good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: Testing if Perl Code is Valid - but don't execute!by JavaFan (Canon) |
on Aug 10, 2010 at 21:16 UTC ( [id://854139]=note: print w/replies, xml ) | Need Help?? |
Is there a way to test if Perl code is valid, without having the Perl code you want to validate, affect the rest of the script?No. Consider: Valid or not? Without executing the begin block, impossible to answer. (It's valid if the prototype is empty, it's a syntax error otherwise.)
In Section
Seekers of Perl Wisdom
|
|