On Mon, 3 Jun 2002, Doug MacEachern wrote:

> On Sun, 2 Jun 2002, Stas Bekman wrote:
>  
> > Therefore the following fails:
> > 
> >    PerlModule Apache2
> >    PerlRequire "/home/httpd/httpd-2.0/perl/startup.pl"
> > 
> > if the startup file needs something from Apache2/ (which is in 99% the 
> > case).
> 
> one can always 'use Apache2 ();' in startup.pl instead.
>  
> > So it seems to me is my previous suggestion of unconditional loading 
> > Apache2 from the core is applied, this problem goes away.
> 
> i've had something in mind to use @INC hooks, since we can't really just 
> "require Apache2" from the core due to issues you point out above.  one 
> may adjust @INC at any time, so we need something to resolve paths to 
> Apache2/ at any point in time.

Ok, so the advisory should be:

If you use a startup file, add at the top of it:

  use Apache2 ();

Only if you don't use a startup file, use:

  PerlModule Apache2

or something like this. ok?


__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org 
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com  
http://modperlbook.org http://apache.org   http://ticketmaster.com


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to