Perl Best Practices Review
: Always include use strict; and use warnings; to catch common syntax errors and unsafe practices early.
: Use descriptive, consistent names (e.g., lowercase with underscores for variables and subroutines) and mark reference variables with a _ref suffix. Perl Best Practices
: Design a module's interface (API) first by "play-testing" examples of how it will be used. : Always include use strict; and use warnings;
: Organize code into logical "paragraphs" separated by whitespace, with a single-line comment explaining the purpose of each chunk. Core Language Guidelines 20 most important Perl Best Practices - PerlMonks : Always include use strict