http://www.perlmonks.org?node_id=942288


in reply to Non-traditional, Line by Line Compilation in Perl

I do not think you are correct.
$ (echo '};'; echo '{};'; echo '};') | perl -c Unmatched right curly bracket at - line 1, at end of line syntax error at - line 1, near "}" Unmatched right curly bracket at - line 3, at end of line syntax error at - line 3, near "}" - had compilation errors. $
Parsing did not stop at finding the first syntax error.