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
perl -c
Have you looked into PPI? I think it does follow imports, however it could perhaps be more easily modified to guess what looks like a function name.