Originally based on the Perl Best Practices by Damian Conway. Written by Jeffrey Thalhammer. Try Perl::Critic online.

perlcritic -h

perlcritic -5 file_name.pl