If you use emacs, this function will check the syntax of your perl code and also run podchecker against it and display the result in a new buffer.
You can call this function via the after-save-hook, and have the syntax checker run automatically. The function checks for CPerl mode.
Updated the code and the 'perlsyn' folder is shown only when there is a syntax error.(thanks to water)
Updated code to do a perl -wc (thanks to htoug)