Perl::Critic::Bangs

From xoa

Jump to: navigation, search

Perl::Critic::Bangs is a set of extensions to Perl::Critic that Andy wrote. Here is a dumping ground of ideas for other extensions, thanks to MJD:

http://perl.plover.com/flagbook/yak/Chi/slide033.html

  • \"
  • print print print print print
  • Many very long strings
  • C-style for loop
  • File-scope my Variables
  • Excessively decorated comments
  • Loop counter variables
  • Single scalar variable in quotes
  • Array Length variables
  • Unnecessary Shell Calls
  • The swswsw problem
    • ($a, $b, $c, $d) = $line =~ /\s*(\w*)\s*(\w*)\s*(\w*)\s*(\w*)\s*/;
Personal tools