in reply to Using other modules with Module::Build

As I understand things, the module needs to be loaded for the ./Build step, but you are loading it during the perl Build.PL step. I think the following will do the trick:

my $class = Module::Build->subclass(code => <<'EOF'); sub ACTION_build { require Parse::RecDescent; ... } EOF

I think this will also work:

my $class = Module::Build->subclass(code => <<'EOF'); use Parse::RecDescent; sub ACTION_build { ... } EOF

Replies are listed 'Best First'.
Re^2: Using other modules with Module::Build
by braden (Novice) on Apr 10, 2006 at 23:18 UTC
    Indeed. Thanks!