You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by David Pisoni <da...@cnation.com> on 2001/10/11 23:14:08 UTC

PerlModule not updating %INC

Hello,

We are using perl 5.6.0 for Apache 1.3/20, with mod_perl 1.26.  We are running these on a RedHat Linux 7.1, kernel v2.4.2 system.

We have been doing development using mod_perl, but finding that Apache::StatINC was not working as expected (i.e., we needed to restart the web server in order to see our module changes in effect.)  Our apache config files preload all necessary modules at start time using the 'PerlModule' directive.  When I started peeking through Apache::Status I found that although all of our loaded modules appear in the "Inheritance Tree" and the "ISA Tree", most of them did not appear in the "Loaded Modules" section.  (I also did a test handler with a dump of the contents of %INC, and said modules were missing.)  The only modules of ours which DID appear were those which were ALSO called for with 'use' calls by other modules.

Out of curiosity, I took our configuration file and changed all the 'PerlModule' directives to 'use' calls (inside a <Perl> block), and lo and behold, they all appeared in %INC.

I could not find any documentation suggesting that the PerlModule directive would successfully load a module while circumventing %INC, nor do I recall in my previous projects developed using mod_perl having this problem.  (Although I've been away awhile -- maybe I forget.)

Any guidance?

Thanks,
-- 
David Pisoni

"One machine can do the work of fifty ordinary men. No machine can do the work of one extraordinary man." -Elbert Hubbard, author, editor, printer (1856-1915)

Re: PerlModule not updating %INC

Posted by David Pisoni <da...@cnation.com>.
At 18.23 -0400 10/11/2001, Perrin Harkins wrote:
> > At 18.07 -0400 10/11/2001, Perrin Harkins wrote:
>> > > We are using perl 5.6.0 for Apache 1.3/20, with mod_perl 1.26.
>> >
>> >Are you sure?  There was a problem with %INC and PerlModule, but I
>thought
>> >it was fixed in 1.26.
>> >
>> >- Perrin
>>
>> Indeed, like I said, I tested it by dumping %INC myself -- the modules are
>indeed missing when loaded with PerlModule.
>
>No, I meant are you sure you're running 1.26?  Please doublecheck it, since
>this sounds so much like the bug from the previous release.
>- Perrin

Indeed, here's the signature from Apache::Status :

	Embedded Perl version v5.6.0 for Apache/1.3.20 (Unix) (Red-Hat/Linux) mod_perl/1.26

Apache.pm shows v1.27 (that's a little weird, but I assume unimportant.)

Thanks,
David

Re: PerlModule not updating %INC

Posted by Perrin Harkins <pe...@elem.com>.
> At 18.07 -0400 10/11/2001, Perrin Harkins wrote:
> > > We are using perl 5.6.0 for Apache 1.3/20, with mod_perl 1.26.
> >
> >Are you sure?  There was a problem with %INC and PerlModule, but I
thought
> >it was fixed in 1.26.
> >
> >- Perrin
>
> Indeed, like I said, I tested it by dumping %INC myself -- the modules are
indeed missing when loaded with PerlModule.

No, I meant are you sure you're running 1.26?  Please doublecheck it, since
this sounds so much like the bug from the previous release.
- Perrin


Re: PerlModule not updating %INC

Posted by David Pisoni <da...@cnation.com>.
At 18.07 -0400 10/11/2001, Perrin Harkins wrote:
> > We are using perl 5.6.0 for Apache 1.3/20, with mod_perl 1.26.
>
>Are you sure?  There was a problem with %INC and PerlModule, but I thought
>it was fixed in 1.26.
>
>- Perrin

Indeed, like I said, I tested it by dumping %INC myself -- the modules are indeed missing when loaded with PerlModule.

Enjoy,
David

Re: PerlModule not updating %INC

Posted by Perrin Harkins <pe...@elem.com>.
> We are using perl 5.6.0 for Apache 1.3/20, with mod_perl 1.26.

Are you sure?  There was a problem with %INC and PerlModule, but I thought
it was fixed in 1.26.

- Perrin