braden has asked for the wisdom of the Perl Monks concerning the following question:
use Module::Build; use Parse::RecDescent; my $class = Module::Build->subclass(code => <<'EOF'); sub ACTION_build { my $self = shift; open FILE, "grammar" or die "could not open \"grammar\": $!"; my $grammar; { local $/; $grammar = <FILE>; } Parse::RecDescent->Precompile($grammar, "My::Grammar"); $self->SUPER::ACTION_build; } EOF
Build is generated without incident; but when it is run I get:
What's the proper way to tell Module::Build about Parse::RecDescent?Can't locate object method "Precompile" via package "Parse::RecDescent +" (perhaps you forgot to load "Parse::RecDescent"?) at /home/braden/s +rc/endoframe/literally/trunk/_build/lib/MyModuleBuilder.pm line 13, < +FILE> line 1.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Using other modules with Module::Build
by ikegami (Patriarch) on Apr 10, 2006 at 23:02 UTC | |
by braden (Novice) on Apr 10, 2006 at 23:18 UTC |