in reply to My first module is failing on CPAN

I just want to state a couple of obvious pointers about getting module distros to work on cpan.

after you run your 'make dist', copy the output file to /tmp/ and test it out as somebody else would. You can make a script to test this automatically in bash or perl.

Doing this you may find that you left some files out in the MANIFEST - for one.

Also make sure that your Makefile.PL does list all the dependencies. Assume that none will be present in the host.

I have some personal hacks in LEOCHARRE::Dev as examples, that do things like automatically fill in your Makefile.PL and MANIFEST, etc.

Replies are listed 'Best First'.
Re^2: My first module is failing on CPAN
by bingos (Vicar) on Jun 30, 2008 at 08:08 UTC

    Yeah, there is a way to test the distribution built with make dist, it is called make disttest

    Prior to releasing anything to CPAN, I usually do this:

    perl Makefile.PL && make test && make dist && make disttest
      Thanks for the pointer!