KW Perl Mongers Perl Modules: A Look Under the Hood #19

Packaging

Perl makes it very easy to turn your module into a package suitable for submitting to CPAN.

  • See Programming Perl for all the details;

  • Start from a template:

     h2xs -XAn GD::Text::Arc
  • Will create: directory GD, containing Text, containing Arc...

  • ... containing a stub Arc.pm module, README file, test.pl, and stub Makefile.PL

  • Make a .tar.gz file you can install anywhere you like:

     perl Makefile.PL ; make ; make dist

<< Previous | Index | Next >> Copyright © 2004 Daniel Allen