hesco has asked for the wisdom of the Perl Monks concerning the following question:

Is there some easy way to add new modules to a distribution created with module-starter? I've done some work in this package, see the need for a couple of additional modules in the mix, and would love to have Module::Starter and Makefile.PL do their magic again as they did to get me started here.

Petdance: Care to add a method for this, next time out?

Perhaps if I better understood the innards, I'd understand how trivial this request is and stop bothering folks here with this. I know I'd add my .pm files to lib/ and add them to the MANIFEST, add tests for them to t/00.load.t. Is there anywhere else I need to account for them, to make this whole `make dist` thing work?

ExtUtils::MakeMaker feels like a great new toy I get to learn how to use. That and chromatic and Ian Langworth's book have made this a great Christmas! Tonight, I finished the Mock Object chapter. Maybe I was simply too tired when I tried the perldoc for Mock Objects. But this chapter certainly cleared out whatever blockages existed to my actually trying to use them. I have this email method I've been trying to figure out how to test for a while now. Let me plug Perl Testing: A Developers Notebook

-- Hugh

if( $lal && $lol ) { $life++; }

Replies are listed 'Best First'.
Re: Adding new modules to distribution.
by gaal (Parson) on Dec 27, 2006 at 12:34 UTC
    Adding the new file and a test, then noting them in MANIFEST is enough, as far as make dist is concerned. If you use some sort of source control (and you should be!), don't forget to add the files there too.
Re: Adding new modules to distribution.
by bingos (Vicar) on Dec 27, 2006 at 13:33 UTC

    There is also make manifest which should update your MANIFEST file accordingly.