in reply to Tool that detects perl syntax errors

mosh,
The answer is most likely no. As you may have noticed, perl -wc script will only give you the warnings and errors until it blows up. Fixing those may lead to new warnings/errors. Perl goes to great lengths to be forgiving but at some point the parser has to give up. Even the best syntax highlighters fail some pretty common bugs - parsing Perl isn't easy.

There are two projects I am aware of that might be of interest. The first is the work Larry is doing on parsing Perl for Perl6. This work isn't currently public AFAIK. The other is PPI.

Cheers - L~R

  • Comment on Re: Tool that detects perl syntax errors