Perl shallow syntax check? ie. do not check syntax of imports

前端 未结 5 2267
一个人的身影
一个人的身影 2021-02-15 14:38

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

5条回答
  •  梦如初夏
    2021-02-15 14:48

    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.

提交回复
热议问题