The Perl Advent Calendar needs more articles for 2022. Submit your idea today!

Changes for version 1.12

    • Fixed docs on how to configure ProhibitCommentedOutCode.


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.
Prohibit loading of debugging modules like Data::Dumper
Don't use XXX, TODO, or FIXME.
Know what you're going to test.
Prohibit variables and subroutines with names that end in digits.
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 and subroutine names.