5-10
5-12
5-14
5-16
5-18
5-20
5-22
5-24
5-26
5-28
5-30
5-32
5-34
5-36
5-38
5-40
5-8
administrative-note
book
book-signing
broken-feature
chapters
classroom-training
conferences
cpan
databases
datetime
debugging
distributions
documentation
ebook
external-interactions
files-filehandles
formats
git
idiomatic-perl
item
kindle
midweek-bonus-item
miscellany
performance
presentations
promotion
publishing
regular-expressions
subroutines
the-basics-of-perl
5-10
- Perl 5.10 new features
- Watch out for side effects with `use VERSION`
- Match Unicode characters by property value
- Use branch reset grouping to number captures in alternations
- Set default values with the defined-or operator.
- Use a smart match to match several patterns at once
- Use the > and < pack modifiers to specify the architecture
- Use the C3 method resolution order in multiple inheritance
- The \R generic line ending
- Define grammars in regular expressions
- Ignore part of a substitution's match
- Use atomic matching for complex non-backtracking
5-12
- Perl 5.12 new features
- Use each() on an array in Perl 5.12.
- Turn off Perl 5.12 deprecation warnings, if you dare!
- Implicitly turn on strictures with Perl 5.12
- Temporarily remove hash keys or array elements with `delete local`
- Use when() as a statement modifier
- In Perl v5.12, length(undef) returns undef.
- Use the \N regex character class to get "not a newline"
- Use Test::More as you experiment
- Don't use auto-dereferencing with each or keys
- The Perl 5.12 yada yada operator
- Perl v5.12 adds the package NAME VERSION syntax
5-14
- Perl 5.14 new features
- Use the /r substitution flag to work on a copy
- Use the return value of given
- Specify any character by its octal ordinal value.
- Let perl create your regex stringification
- Use the return value from srand
- Use array references with the array operators
- Perl 5.14 adds non-destructive transliteration
- Set default regular expression modifiers
- Declare packages outside of their block
- Enforce ASCII semantics when you only want ASCII
- Use /aa to get ASCII semantics in regexes, for reals this time
5-16
5-18
5-20
- Perl 5.20 new features
- Perl 5.20 uses its own random number generator
- Perl 5.20 optimizes return at the end of a subroutine
- Perl 5.20 introduces "Key/Value Slices"
- In v5.20, -F implies -a implies -n
- Perl v5.20 combines multiple my() statements
- Use postfix dereferencing
- Perl v5.20 fixes taint problems with locale
- Use the :prototype attribute
- Use v5.20 subroutine signatures
- Perl v5.28 can delete key-value slices
5-22
5-24
5-26
- Perl v5.26 new features
- Strip leading spaces from here-docs with v5.26
- v5.26 removes dot from @INC
- /xx means more meaningless whitespace (and that's good)
- You must escape the left brace in a regex
- Deprecation warnings now tell you when the features will disappear
- keys in scalar context now returns the number of keys
- Don't use POSIX to create temporary files
- Perl v5.26 now recognizes version control conflict markers
- Find the new emojis in Perl's Unicode support
- Mix assignment and reference aliasing with declared_refs
- Use @{^CAPTURE} to get a list of all the capture buffers
5-28
5-30
- Perl v5.30 lets you match more with the general quantifier
- Perl v5.30 new features
- No more false postfix lexical declarations in v5.30
- Perl 5.30 fixes single quoted qr'' with \N{}
- Use a variable-width lookbehind if it won't match more than 255 characters
- Match Unicode property values with a wildcard
5-32
5-34
5-36
administrative-note
- Effective Perl Programming, the blog
- Get a review copy of Effective Perl Programming
- Effective Perl Programming is in Rough Cuts
- InformIT has an Effective Perl Item: Process HTML with a Perl Module
- Report any errors you find in Effective Perl Programming
- The Effective Perler in 2010
- The Effective Perler in 2012 and beyond
book
book-signing
broken-feature
classroom-training
conferences
debugging
- Use B::Deparse to see what perl thinks the code is.
- Use Carp::REPL as an interactive Perl shell.
- Detect regular expression match variables in your code
- Locate bugs with source control bisection
- Use Data::Dump filters for nicer pretty-printing
- Intercept warnings with a __WARN__ handler
- Use Data::Printer to debug data structures
- Trace your Perl programs
distributions
documentation
ebook
- Effective Perl Programming is now on Kindle.
- Effective Perl Programming looks better than most on the Kindle.
- Effective Perl Programming is in PDF and ePub
- Do you want extra Effective Perl in Safari Books?
- Read Effective Perl Programming on the Safari Books Online mobile site
- Try the Safari Books iPad application (well, not yet)
external-interactions
files-filehandles
git
idiomatic-perl
item
- Eliminate needless loops and branching
- Know what creates a scope
- Watch out for disappearing strings when you decode
- Know how Perl handles scientific notation in string to number conversions.
- Avoid accidently creating methods from module exports
- Make links to per-version tools
- Process XML data with XML::Twig
- Make deep copies
- Know the difference between regex and match operator flags
- Use /gc and \G in matches to separate alternations in separate, smaller patterns
- Know what your the last evaluated expression actually is.
- Use scalar references to pass large data without copying.
- Know when and when not to write networking code.
- Respect the global state of the flip flop operator
- Keep your programmatic configuration DRY
- Don't make Perl do more work than it needs to
- Understand "global" variables.
- Use rational numbers for arbitrary precision
- Use bitfields to index and search data
- Compile a development version of perl
- Use CORE when you need the real thing
- Make your methods know as little as possible
- Create random strings
- Know your character classes under different semantics
- Build a new perl in parallel for fast results
- Know your sort orders
- Choose the right Perl distribution for you
- Choose the right Perl version for you
- Know the phases of a Perl program's execution
- Know the two different forms of eval
- Understand Perl's default inheritance model
- Understand autovivification
- Pass the empty subclass test
- Understand the Test Anything Protocol
- Override die with END or CORE::GLOBAL::die
- Set the line number and filename of string evals
- Treat Unicode strings as grapheme clusters
- Be careful with Unicode character ranges
- Fix Test::Builder's Unicode issue
- Modify XML data with XML::Twig
- Turn off autovivification when you don't want it
- Group tests by their task with Test::More's subtest()
- Know the difference between character strings and UTF-8 strings
- Know the difference between utf8 and UTF-8
- Normalize your Perl source
- Enchant closures for better debugging output
- Use lookarounds to eliminate special cases in split
- Return error objects instead of throwing exceptions
- Understand why you probably don't need prototypes
- Use lookarounds to split to avoid special cases
- Profile with Devel::NYTProf
- Make grep-like syntax
- Make disposable web servers for testing
- Create your own dualvars
- Undef a scalar to release its memory