July 2001 h2xs has eXceeded its Stay Back Slide 2 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
  • But those files have several annoying features


Copyright © 2001 GlaxoSmithKline Back Contents Forward