The reader did not realize that perl -c does not provide a safe way to test syntactical correctness. There is no way to do that in Perl.
For instance suppose that it does a use. There is no way to know if later code is syntactically correct without running the used module. (For instance what functions are exported? This affects what will be trapped as a bareword under strict, and what will not.) But when you do that, the module could do absolutely anything it wanted to.
In reply to Re (tilly) 2: syntax check from within perl
by tilly
in thread syntax check from within perl
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |