I recently upgraded Perl from 5.18 to 5.22 and I noticed a difference at the compile time [ perl -c <script> ] experience.
On 5.18, I used to get all the syntax errors at compile time in a single compilation.
But on 5.22, the compile process exists as soon as it hits the first syntax error. I will have to fix this error and re-compile it to check for further syntax errors.
Is there a way to get all the syntax errors at compile time in a single compilation.