On Wed, 12 Jul 2000, Greg Leidreiter wrote:

> Firstly becuase the Eagle book seems very rigorous to me, and such an
> oversight as forgetting to push a path into @INC should have been picked up
> well before now. I've never heard mention of this problem...

mod_perl automatically adds {ServerRoot} and {ServerRoot}/lib/perl to @INC.

>                                                             Moreover, Stein
> and MacEachern *do* address the issue of having to add another lib path. In
> my understanding that's exactly the point of the BEGIN block in startup.pl -
> it's just that for some reason this doesn't seem to be getting picked up
> properly.

According to pages 500-501 in the Eagle book, changes made to @INC from
PerlRequire'd code don't stick.

> Secondly, when I added the <Perl> push ... directive to perl.conf the server
> repeatedly failed to start (which may provide a clue to those of you out
> there who know a lot more than I do) even though it came up with Syntax OK
> under httpd -t.

Watch out for those @INC push()es in your configs.
I used to have one of those in mine, and every time I did a kill -USR1,
@INC grew, though I didn't realize this at first.  Then I found out about
{ServerRoot}/lib/perl, moved my modules there, and dumped the @INC
modifications.

Reply via email to