Back Top Next

Writing Modules

I came across a book by Sam Tregar, "Writing Perl Modules for CPAN"

Anything worth doing is worth doing well, might as well write up to the level of CPAN

Figured this would be easy to distribute in our own constellation

h2xs creates the skeleton of a module distribution: h2xs -XA -n Foo::Bar

Functional and object oriented interfaces

Plain old documentation (POD) hints

Test scripts - you do "make test" when installing, don't you?

Portability - OS, file system, Perl versions

Submitting modules to CPAN (I haven't yet)

Managing releases

Great CPAN modules, and why they are great

Programming Perl in C, writing modules with XS, with Inline::C