June 2002 ModuleMaker Back Slide 11 Forward

Directives (2)


use ExtUtils::ModuleMaker;

my $MOD = ExtUtils::ModuleMaker->new

            (

              NAME => 'Sample::Module',

              COMPACT           => 0,

              NEED_POD          => 1,

              NEED_NEW_METHOD   => 1,

              CHANGES_IN_POD    => 0,

            );

$MOD->complete_build ();

  • Setting COMPACT to true will eliminate the nesting of base directories, so the files will be created in ./Sample-Module rather than ./Sample/Module. Default is off.
  • Setting NEED_POD to true will include the blocks of pod. Default is on.
  • Setting NEED_NEW_METHOD to true will include a simple 'new' method in the module. Default is on.
  • Setting CHANGES_IN_POD to true omits the 'Changes' file and adds a 'HISTORY' section to the pod. Default is off.


Copyright © 2001-2002 GlaxoSmithKline Back Contents Forward