perl-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stas Bekman <s...@stason.org>
Subject Re: [patch] PerlINC implementation
Date Tue, 20 Nov 2001 07:52:59 GMT
> Sounds good to me, but I have a question.  If one does :
> 
> <Location /foo>
>   PerlSetINC /this/dir
> </Location>
> 
> </Location /bar>
>   PerlSetINC /this/other/dir
> </Location>
> 
> Can I assume that it would:
> 
> 1.  Populate @INC on a per-request/per-location basis ?
> 2.  Allow for changes of @INC , like if the application code fiddles
>     with it, be guaranteed that whatever is specified by PerlSetINC
>     will be in @INC for every request?


Yes.

Plus you can

PerlSetINC /common

</Location /bar>
PerlAddINC /bar/lib
</Location>

<Location /foo>
PerlAddINC /foo/lib
</Location>

so the /common will be inherited from the top level scope.


_____________________________________________________________________
Stas Bekman             JAm_pH      --   Just Another mod_perl Hacker
http://stason.org/      mod_perl Guide   http://perl.apache.org/guide
mailto:stas@stason.org  http://ticketmaster.com http://apacheweek.com
http://singlesheaven.com http://perl.apache.org http://perlmonth.com/


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Mime
View raw message