Contents

Idiomatic Perl

Item 7: Use $_ for elegance.
Item 8: Know the other default arguments: @_, @ARGV, STDIN.
Item 9: Know common shorthands and syntax quirks.
Item 10: Avoid excessive punctuation.
Item 11: Consider different ways of reading from a stream.
Item 12: Use foreach, map and grep as appropriate.
Item 13: Don’t misquote.
Item 14: Learn the myriad ways of sorting.

Regular Expressions

Item 15: Know the precedence of regular expression operators.
Item 16: Use regular expression memory.
Item 17: Avoid greed when parsimony is best.
Item 18: Remember that whitespace is not a word boundary.
Item 19: Use split for clarity, unpack for efficiency.
Item 20: Avoid using regular expressions for simple string operations.
Item 21: Make regular expressions readable.
Item 22: Make regular expressions efficient.

Subroutines

Item 23: Understand the difference between my and local.
Item 24: Avoid using @_ directly–unless you have to.
Item 25: Use wantarray to write subroutines returning lists.
Item 26: Pass references instead of copies.
Item 27: Use hashes to pass named parameters.
Item 28: Use prototypes to get special argument parsing.
Item 29: Use subroutines to create other subroutines.

References

Item 30: Understand references and reference syntax.
Item 31: Create lists of lists with references.
Item 32: Don’t confuse anonymous arrays with list literals.
Item 33: Build C-style structs with anonymous hashes.
Item 34: Be careful with circular data structures.
Item 35: Use map and grep to manipulate complex data structures.