nicolaw has asked for the wisdom of the Perl Monks concerning the following question:
I'm working from the following example code using Apache 2.2.0 and Perl 5.8.7, and mod_perl 2.0.2 in a prefork configuration.
http://perl.apache.org/docs/2.0/user/config/custom.html#Examples
--- 8< --- package MyPackage; use Apache2::Module qw(); use Apache2::... a whole bunch more apache modules our @DIRECTIVES = qw(directive1 foo bar etc); Apache2::Module::add(__PACKAGE__, [ map { { name => $_ } } @DIRECTIVES + ]); . . . --- 8< ---
However I keep getting "Undefined subroutine &Apache2::Module::add called"
I've looked in the mod_perl2 source, and it definitely has references to that function. I don't have problems with any other core Apache2:: module - just this one. I'm pretty sure I've not typoed - I've checked it enough times.
What am I doing wrong?
Edit by holli: changed pre tags to code tags and links to []-notation.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Apache2::Module::add hiding from me
by perrin (Chancellor) on Nov 30, 2006 at 15:13 UTC | |
|
Re: Apache2::Module::add hiding from me
by Anonymous Monk on Nov 30, 2006 at 11:59 UTC |