Archive for Development
Perlish – List Utilities
Introduction There are two CPAN modules that provide some nice utilities for working with and manipulating lists: List::Util and List::MoreUtils. This article quickly covers a few of these utilities that I have found useful.
Perlish – DBIx::Simple
Introduction Over the years, I’ve spent a lot of time with Perl DBI. It’s a great interface for working with databases, but sometimes I find it a little too heavy. A few months ago I found DBIx::Simple and now all is right with the world.
Perlish – Dates and Time
Introduction Anyone who frequently writes utility scripts will eventually run into having to deal with Dates and Time. The type of tasks, though, can vary: sometimes you have to format a date, convert a date, add or subtract time to a date, or find a date. This article covers various ways of having to deal [...]
Perlish – Text::Template
Introduction Most scripts or applications involve some type of output and reporting. If the script or application starts growing, the output can become more complex. Mixing the code that formats and displays your output in the same area as the code that performs the logic can become messy. Templating is a popular solution to this [...]
Perlish – Logging
Introduction Logging is an essential tool and feature for System Administrators. With Perl, logging can be as simple as using print, die, or warn, or more advanced such as logging to syslog, a private log file, or even a database. This article quickly covers the more advanced logging.
Perlish – Try::Tiny
Introduction Although not used all the time with System Administration-based scripts, the ability to run a piece of code and react if it errors out is a convenient programming feature. Perl has always been able to do this with eval, but compared to other languages, the syntax is awkward. Try::Tiny is a small alternative to [...]
Perlish – File::Slurp
Introduction Reading files is a cornerstone of solving everyday tasks with Perl. While Perl’s file IO features are very easy to use, repeating the simple task of reading a file into a variable can become cumbersome. File::Slurp can alleviate some of this burden with a few nice shortcut functions.
Perlish – cpan-outdated
Introduction This Perlish article covers App::cpanoutdated.
Perlish – cpanm
Introduction Perlish will be a series of short articles about various Perl modules and programs that I’ve found to come in handy. This first article is about cpanminus or cpanm.
New cPanel Perl Module
Introduction On Monday, cPanel announced the release of a new cPanel::PublicAPI Perl module. It’s a really nice module and this short article will explain how to use it.
