perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pierre Phaneuf ...@ludusdesign.com>
Subject PerlModule vs "use" in a <Perl> section
Date Fri, 02 Mar 2001 04:13:53 GMT

I was using Apache::Status to learn a bit about what is loaded by my
server, and I am wondering about a detail...

If I put this:

<Perl>
use Apache::Foo;
</Perl>

Or this:

PerlModule Apache::Foo

I would expect the two to behave the same, but they don't! The "use" in
the <Perl> section does as I was expecting (the module and everything it
loaded was right there), but while the PerlModule seemed to change
something (Apache::Util was loaded, which I use in my Apache::Foo
module), Apache::Foo itself wasn't on the list of loaded modules!

Using a "+" when installing the PerlHandler (like this: "PerlHandler
+Apache::Foo") did load the module as expected.

Now, why aren't modules loaded with PerlModule not showing up in the
loaded modules list of Apache::Status?

Thanks!

-- 
Pierre Phaneuf
http://www3.sympatico.ca/pphaneuf/

Mime
View raw message