- PBP
- Perl::Critic
Perl Best Practices - Perl::Critic
So reading the book is good. In addition there is a module called Perl::Critic by Jeffrey Ryan Thalhammer and currently maintained by Elliot Shank that can check each one of the practices Damian suggest. Not only that.
There is also a module called Test::Perl::Critic that takes the functions of Perl::Critic and turns them into Test::Builder based functions. So you can get ok/not ok output from them.
Using them in Perl projects can help improving the code base very quickly.
You can also configure the module to check each one of the "practices" according to the style accepted in your company.
examples/test-perl/t/99-critic.t
use strict; use warnings; use Test::More; eval { require Test::Perl::Critic; import Test::Perl::Critic; }; plan skip_all => 'Test::Perl::Critic required to criticise code' if $@; all_critic_ok('blib'); #all_critic_ok('blib', 't');