Posted tagged ‘perl’

One for the Perl geeks

September 4, 2008

When writing a Perl module to wrap various CVS functionality, no matter how much of a good idea you might think it is, you really don’t want to add a method named “import”. You will get the weirdest error messages when you attempt to “use” the module and you will feel like hitting your head […]

Moose versus Plain Perl

June 11, 2008

Some people have questioned the wisdom of basing future software projects on an Object-Oriented programming technology such as Moose (see previous posts for more details on Moose if you don’t know what it is) rather than doing it the good old-fashioned way in pure, unadulterated Perl. There are always questions to be considered whenever a […]

Option Handling and Moose

May 28, 2008

Further to my previous post on option handling in Perl. There is a rather useful Moose extension named MooseX::Getopt which allows the building of an object directly from a set of command line options. The class attributes are directly translated into an option profile for Getopt::Long. Here’s a simple example class: package LCFG::Foo; use Moose; […]

Option Handling in Perl

May 28, 2008

I’ve often used the Perl module Getopt::Long to handle options for scripts. This time I wanted something a bit more complex, I was aiming for something akin to the command-line interface to cvs. Basically, there are options which apply globally then a command and then command specific options. e.g. lcfg-reltool –quiet –dir dice/lcfg-foo release –checkcommitted […]

perl module conflicts

February 1, 2008

In the process of packaging up the latest Moose and Class::MOP perl modules (and all the other dependencies) I discovered that the build process of some of them is asking for a version of Test::Simple which is more recent than that which is on SL5. Normally this would not be a problem, I would just […]