ExtUtils::ModuleMaker 0.47 review

Download
by rbytes.net on

ExtUtils::ModuleMaker is a Perl module better than h2xs for creating modules. SYNOPSIS At the command prompt: % modulema

License: Perl Artistic License
File size: 134K
Developer: R. Geoffrey Avery
0 stars award from rbytes.net

ExtUtils::ModuleMaker is a Perl module better than h2xs for creating modules.

SYNOPSIS

At the command prompt:
% modulemaker
Inside a Perl program:
use ExtUtils::ModuleMaker;

$mod = ExtUtils::ModuleMaker->new(
NAME => 'Sample::Module'
);

$mod->complete_build();

$mod->dump_keys(qw|
... # key provided as argument to constructor
... # same
|);

$mod->dump_keys_except(qw|
... # key provided as argument to constructor
... # same
|);

$license = $mod->get_license();

$mod->make_selections_defaults();

This module is a replacement for the most typical use of the h2xs utility bundled with all Perl distributions: the creation of the directories and files required for a pure-Perl module to be installable with make and distributable on the Comprehensive Perl Archive Network (CPAN).
h2xs has many options which are useful -- indeed, necessary -- for the creation of a properly structured distribution that includes C code as well as Perl code. Most of the time, however, h2xs is used as follows

% h2xs -AXn My::Module

to create a distribution containing only Perl code. ExtUtils::ModuleMaker is intended to be an easy-to-use replacement for this use of h2xs.

While you can call ExtUtils::ModuleMaker from within a Perl script (as in the SYNOPSIS above), it's easier to use with a command-prompt invocation of the modulemaker script bundled with this distribution:

% modulemaker

Then respond to the prompts. For Perl programmers, laziness is a virtue -- and modulemaker is far and away the laziest way to create a pure Perl distribution which meets all the requirements for worldwide distribution via CPAN.

Requirements:
Perl

ExtUtils::ModuleMaker 0.47 keywords