July 24, 2003 ModuleMaker Back Slide 12 Forward

Prerequisites


use ExtUtils::ModuleMaker;

my $MOD = ExtUtils::ModuleMaker->new

            (

              NAME => 'Sample::Module',

              PREREQ_PM    => {

                               Getopt::Std    => 0, # in the Perl core

                               MyModule       => 3.14,

              },

            );

$MOD->complete_build ();

  • A hash where the keys are module names and the values are minimum version numbers that are required for this distribution.
  • If you do not care about the version set the value to 0.
  • ModuleMaker will automatically require Test::Simple version 0.44 in addition to user specified modules. Test::Simple provideds Test::More which is used in the generated tests.
  • Default is empty.


Copyright © 2001-2003 GlaxoSmithKline Back Contents Forward