September 2002 ModuleMaker Back Slide 3 Forward

From the documentation for ExtUtils::MakeMaker

How To Write A Makefile.PL

The short answer is: Don't.

        Always begin with h2xs.

        Always begin with h2xs!

        ALWAYS BEGIN WITH H2XS!

even if you're not building around a header file, and even if you don't have an XS component.


h2xs -XA -n Sample::Module

  • Makemaker suggests we use h2xs to make the starter files
  • -XA for pure perl modules with no XS components
  • -n to give the name of the module
  • It will create a directory called ./Sample/Module with five files


Copyright © 2001-2002 GlaxoSmithKline Back Contents Forward