Default emacs installation on debian/wheezy, just open your file in emacs and hit M-x flymake-mode.
This mode has only two useful functions which you may want to assign to some keys like
...in your .emacs.d/init.el file.(global-set-key [f5] 'flymake-goto-next-error) (global-set-key [f6] 'flymake-display-err-menu-for-current-line)
For even more fun run M-x cperl-mode and read it's docs with C-h m.