http://www.perlmonks.org?node_id=490315


in reply to Re^2: Application Testing: Custom Module or Perl Test Files?
in thread Application Testing: Custom Module or Perl Test Files?

I couldn't find where in the ExtUtils::ModuleMaker docs it mentions creating multiple modules, but in Module::Starter it shows it:

module-starter --module=Foo::Bar,Foo::Bat \ --author="Andy Lester" --email=andy@petdance.com

Maybe I completely missed it?

Oh, and I like the look of Module::Starter::PBP:

Module::Starter::PBP - Create a module as recommended in "Perl Best Practices"

Walking the road to enlightenment... I found a penguin and a camel on the way.....
Fancy a yourname@perl.me.uk? Just ask!!!

Replies are listed 'Best First'.
Re^4: Application Testing: Custom Module or Perl Test Files?
by geektron (Curate) on Sep 08, 2005 at 21:21 UTC
    well, here's a slightly edited script i used to start creating a bundle of modules for a project i'm trying to finish:
    #!/usr/bin/perl use ExtUtils::ModuleMaker; my $mod = ExtUtils::ModuleMaker->new( NAME => 'ConferenceBuilder', EXTRA_MODULES => [ { NAME => 'ConferenceBuilder::Foundation' }, { NAME => 'ConferenceBuilder::Instance' }, { NAME => 'ConferenceBuilder::Accreditations' }, { NAME => 'ConferenceBuilder::Products' }, { NAME => 'ConferenceBuilder::Sessions' }, { NAME => 'ConferenceBuilder::Addons' }, ], AUTHOR => { NAME =>'geektron', EMAIL => 'me@email.com', ORGANIZATION => 'Dis.Organized', WEBSITE => 'http://www +.perlmonks.org' }, VERSION => '0.01', LICENSE => 'artistic', ); $mod->complete_build();
    just chmod it to executable, and run.

    it made all the modules in the ConferenceBuilder tree and ConferenceBuilder.pm

      Ah, that way ;-)

      Why not add:

      PERMISSIONS => '0755';
      Then you don't need to chmod it.

      Walking the road to enlightenment... I found a penguin and a camel on the way.....
      Fancy a yourname@perl.me.uk? Just ask!!!
        because it's not the modules that are newly created that need to be executable, it's the actual script that needs to be executable. my umask, of course, doesn't create executables automatically.