How can I perform a \"shallow\" syntax check on perl files. The standard perl -c
is useful but it checks the syntax of imports. This is sometimes nice but not great
I would suggest that it's better to include your code repository in your syntax check. perl -I/path/to/working/code/repo/local_perl/ -c
or set PERL5LIB=/path/to/working/code/repo/local_perl/
prior to running perl -c
. Either option should allow you to check against your working code, assuming you have it in a directory structure similar to your live code.