[EMAIL PROTECTED] (Jim Serio) wrote:
>Here's the cgi-perl section of httpd.conf:
>
>-----
><Location /cgi-perl/>
> SetHandler perl-script
> PerlModule Apache::Registry
> PerlHandler Apache::Registry::handler
> PerlModule Apache::DBI
> PerlInitHandler Apache::StatINC
> Options ExecCGI
> PerlSendHeader On
></Location>
>-----
>
>Here's part of my startup.pl file:
>
>-----
>use Apache::Registry ();
>use Apache::Constants ();
>use Apache::Sandwich ();
>use Apache::Include ();
>use DBI ();
>use Apache::DBI ();
>-----
>
>Should I not duplicate these modules and just have all of them in the
>startup file?
Right. The 'use' statements and 'PerlModule' directives are doing the
same thing, so you only need one or the other. But it strikes me as odd
anyway that it's actually loading it twice though, because Perl should
see that it's in %INC and not try to load it again. So there might
indeed be something fishy here, even though it's easily fixable.
By the way, 'PerlModule' directives are traditionally put at the top
level of the config file, outside any directive blocks. They always
affect the global server anyway, not just the config section they're in.
So it's a bit misleading to put them in a config section.
------------------- -------------------
Ken Williams Last Bastion of Euclidity
[EMAIL PROTECTED] The Math Forum