Perl

Best Practices

Write modules, not scripts. This follows my aphorism of everything is a library.

Read Perl Best Practices. Heed them all almost always.

Modules you should use:

  • strict - Always
  • warnings - Always. Make all fatal if possible.
  • Perl::Critic - Crank up the reporting to brutal. Only diverge from practices when you absolutely need to. This policy produces remarkably readable Perl.
  • English - Replace the built-in line noise variables with long forms for readability.