How to test Perl roles without creating test classes
Don’t waste time writing test classes, test the role directly
Perl references: create, dereference and debug with confidence
Learn enough to be dangerous with one of Perl’s most powerful features
Make your code run faster with Perl's secret turbo module
Multi-core programming is a breeze with MCE
The ultimate guide to Windows and Unix file line ending conversion in Perl
Think you know how to fix CRLF in one line of Perl? There might be more to it than you think …
Add Moose-style attribute accessors to your Perl classes
Writing accessors in vanilla object oriented Perl doesn’t have to lead to verbose boilerplate code
Enable Backtraces with Carp::Always (Modern Perl Tips)
Ever had a program crash and wanted to get more details about where and why? The CPAN module Carp::Always is perfect for this.
How to redirect and restore STDOUT
STDOUT is the Perl filehandle for printing standard output. Unless a filehandle is specified, all standard printed output in Perl will go to the terminal. Because STDOUT is just a global variable, it can be redirected and restored. Want to implement logging on a program without changing every print statement in the source code? Want to capture the standard output of a perl CRON job? Read on.
How to read a string into an array of characters using split
Perl’s split function has a useful feature that will split a string into characters. This works by supplying an empty regex pattern (“//”) to the split function. This can be used to easily split a word into an array of letters, for example: