Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • Maybe this could encourage you to use ExtUtils::MakeMaker instead?
    • I use both. Here's a typical Build.PL file of mine:

      #!/usr/bin/perl -w

      use strict;
      use Module::Build;

      my $builder = Module::Build->new(
          module_name       => 'aliased',
          license           => 'perl',
          dist_author       => 'Curtis "Ovid" Poe <moc.oohay@eop_divo_sitruc>',
          dist_version_from => 'lib/aliased.pm',
          requires          => {},
          build_requires => {
              'Test::More'      => 0.6,
          },
          add_to_cleanup     => ['aliased-*'],
          create_makefile_pl => 'traditional',
      );

      $builder->create_build_script();

      When I build, it automatically creates this:

      # Note: this file was auto-generated by Module::Build::Compat version 0.03
      use ExtUtils::MakeMaker;
      WriteMakefile
      (
        'PL_FILES' => {},
        'INSTALLDIRS' => 'site',
        'NAME' => 'aliased',
        'EXE_FILES' => [],
        'VERSION_FROM' => 'lib/aliased.pm',
        'PREREQ_PM' => {
          'Test::More' => '0.6'
        }
      );

      I try hard to make sure that my modules are easy to install, regardless of how you want to install them.