How do I create a standard Perl module intended for distribution?

As I've said before, I am rewriting MyLibrary in an object-oriented manner.
In this new incarnation there will many smaller packages as opposed to one
huge one.

Since I want to create this module in the most Perl-standard fashion, I need
to have things like a MANIFEST file, a Makefile.PL, a t directory, a README
file, etc.

My Perl Cookbook says I should use this command to initialize my project:

  h2xs -XA -n MyLibrary

Fine, but I never expect to have an actual package named MyLibrary.pm.
Consequently, I could do this:

  h2xs -XA -n MyLibrary::Librarian

Unfortunately, this invocation creates a Librarian directory with all the
necessary files, and if I were to do this for each of my packages, then I
would have bunches o' MANIFESTs to keep up with. Non-standard.

Assuming my MyLibrary module is going to have many sub-packages, how do I
create the skeleton of my module with the h2xs command?

-- 
Eric Lease Morgan
University Libraries of Notre Dame

Reply via email to