Title: Use of Apache::Directive in BEGIN
block
Using
Apache/2.0.45 (Unix) mod_perl/1.99_08 Perl/v5.8.0
on a Redhat 87.0 system
I get the following error:
Can't locate object method "lookup" via package
"Apache::Directive" at
/webcontent/dev.mycardmaker.com/lib/perl/Doodlelab/Apache/Test.pm line
4.
when I try to start Apache.
Here is the entire contents of Test.pm
BEGIN {
use Apache::Directive;
my $tree =
Apache::Directive->conftree();
foreach my $node (
$tree->lookup('PerlSetVar') ) {
# I want to do something here.
}
}
1;
--
------------------------------------------
Matisse Enzer
Hamilton Partners
707-431-4300 ext. 212 (office)
415-225-6703 (mobile)