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:
Banish unsightly variable assignments with Method::Signatures
Add subroutine signatures to Perl
Use the logical-or and defined-or operators to provide default subroutine variable behaviour
Perl subroutines do not have signatures so variables must be initialized and arguments assigned to them inside the subroutine code. This article describes two useful shortcuts that can simplify this process.
Perl hash basics: create, update, loop, delete and sort
Hashes are one of Perl’s core data types. This article describes the main functions and syntax rules for for working with hashes in Perl.