The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

Changes for version 1.08 - 2011-06-20

  • Official release, no changes from 1.07_02

Changes for version 1.07_02 - 2011-05-17

  • ENHANCEMENTS
    • The list of bitwise operators prohibited is now:
      • & | ^ ~ &= |= ^=

Changes for version 1.07_01 - 2011-05-16

  • As of 1.07_01, Perl::Critic::Bangs is released under Artistic License 2.0, rather than dual-licensed with the GPL.
  • ENHANCEMENTS
    • Added a new policy, ProhibitBitwiseOperators. Usually when you see a bitwise operator like | or & in a Perl program, it's a mistake that should have been || or &&. It also checks for ^ and ~ as bitwise ops. Thanks to Mike O'Regan.
  • FIXES
    • Remove use of Perl::Critic::Utils::PPIRegexp, which has been removed from the Perl-Critic distribution, with calls to native PPI methods. This allows P::C::Bangs to install when using perl 5.14. Thanks, Elliot Shank.

Modules

A collection of handy Perl::Critic policies
Bitwise operators are usually accidentally used instead of logical boolean operators.
Commented-out code is usually noise. It should be removed.
Don't use XXX, TODO, or FIXME.
Know what you're going to test.
Prohibit variables differentiated by trailing numbers.
Create a clone() method if you need copies of objects.
Adding modifiers to a regular expression made up entirely of a variable created with qr() is usually not doing what you expect.
Don't use generic variable names.