June 2002 ModuleMaker Back Slide 12 Forward

Additional Modules


use ExtUtils::ModuleMaker;

my $MOD = ExtUtils::ModuleMaker->new

            (

              NAME => 'Sample::Module',

              EXTRA_MODULES =>

              [ { NAME => 'Sample::Module::Foo',

                },

                { NAME => 'Sample::Module::Bar',

                  VERSION => 3.14,

                },

              ],

            );

$MOD->complete_build ();

  • Can have more than one pm file in a distribution
  • EXTRA_MODULES is an optional array of hashes for each extra module
  • NAME is the only required parameter for the modules
  • Can set additional values or use the same as the primary module


Copyright © 2001-2002 GlaxoSmithKline Back Contents Forward