Creating Perl Modules
G. Wade Johnson did a talk on some of the modules that make building a Perl module easier.
Module::Starter module was created by Andy Lester to make
creating modules a little easier. The previous standard method was designed
for creating XS-based modules and had a somewhat arcane interface.
Module::Starter provides a script named
which provides a straight-forward interface for creating CPAN-ready modules. The
Module::Starter::PBP module extends
to support the recommendations from Perl Best Practices by Damian
Anyone creating a module for reuse should be familiar with
for generating tests for their modules. If you have installed a module from CPAN,
you have seen the results of the tests when executing
make test. The
actual results of the testing would be much more verbose without the help of
Test::Harness. This module takes the output of a set of Perl tests
and summarizes them nicely. This is the output you normally see from
Test::Harness also provides a utility
prove which applies
the scripts listed on its command line.
The final module on the list was
Perl::Critic. This module
provides a script
perlcritic that tests your code against the
guidelines described in Perl Best Practices. This module supports
a configuration file for customizing the importance of the various rules.
This allows you to specify which practices you want to follow and simplifies
checking your code.