July 24, 2003 ModuleMaker Back Slide 13 Forward

Directives


use ExtUtils::ModuleMaker;

my $MOD = ExtUtils::ModuleMaker->new

            (

              NAME => 'Sample::Module',

              INTERACTIVE   => 0,

              VERBOSE       => 0,

              PERMISSIONS   => 0755,

              USAGE_MESSAGE => "

There were problems with your data supplied to ExtUtils::ModuleMaker.

Please fix the problems listed above and try again.",

            );

$MOD->complete_build ();

  • Setting INTERACTIVE to true will stop the module from using 'die' for errors. Default is off.
  • Setting VERBOSE to true will generate messages when files are created. Default is off.
  • PERMISSIONS are used on all directories created. Default is that group and world can not write to the files.
  • USAGE_MESSAGE is printed after the error message if the module dies. Default shown above. Your scripts using ExtUtils::ModuleMaker should set this to what they return as a help message, often using the -h flag.


Copyright © 2001-2003 GlaxoSmithKline Back Contents Forward