modperl  

Use of Apache::Directive in BEGIN block

Matisse Enzer
Thu, 18 Sep 2003 10:52:57 -0700

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)