A simple guide to ExtUtils::MakeMaker

This is a guide to basic tasks in ExtUtils::MakeMaker. I wrote this because I keep forgetting how to do things.

What to put in Makefile.PL

Make a dependence on another module

use ExtUtils::MakeMaker;
WriteMakefile (
    PREREQ_PM => {
        "Some::Module" => 0,
    },
);

An inconsistency is that for modules required for building, one uses BUILD_REQUIRES and for testing one uses TEST_REQUIRES but for run-time requirements one uses PREREQ_PM.

Web links


Copyright © Ben Bullock 2009-2012. All rights reserved. For comments, questions, and corrections, please email Ben Bullock (ben.bullock@lemoda.net) / Privacy / Disclaimer