http://qs1969.pair.com?node_id=490327


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

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

Replies are listed 'Best First'.
Re^5: Application Testing: Custom Module or Perl Test Files?
by ghenry (Vicar) on Sep 08, 2005 at 21:34 UTC

    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.