I am afraid you _have_ cut it short, Stas. Perhaps even before reading
it :)
Admittedly, I have generated quite a bit of traffic this week-end, and you seem like a busy man. So, I'll let it slip this time :-)
Guilty as charged, but I said that in first place ;) Since I've to read email traffic on about 15 or so mailing lists, all in one way or another affecting mod_perl, I have to adopt some sort of filtering in my head, without which I won't be able to do any work at all, but spend all the time just reading emails all day long. So normally I do that by looking at the subject and sometimes the first para of the post. [that's another reason why I asked you to post different issues in different posts ;)]. Therefore please bear with me and feel free to nudge me if my in-head-filter has ignored your email, just like you did now ;)
But please do me a favour and read it. -- it's attached.
I did now, and you bring points that Geoff has already mentioned: PERL5LIB setting per-dir doesn't work in mp1, so it won't work under mp2.
If you are referring to the behaviour with regards to '-T', I don't have any problems with the way Perl handles it. Yes, mp1 behaviour for PERL5LIB under '-T' was a mistake. The mp2 way is GOOD with regards to that. I had not said anything to the contrary.
What is described in my original post is basically what Geoff was
talking about. In a nutshell, it's about being a able to set PERL5LIB on
a per Server/Directory/Location or per request basis.
The solution is simple - don't use PERL5LIB, use PerlSwitches as I've documented here:
http://perl.apache.org/docs/2.0/user/config/config.html#Adjusting_C__INC_
http://perl.apache.org/docs/2.0/user/config/config.html#Modifying_C__INC__on_a_Per_VirtualHost
So the Vhost solution perfectly answers your problem with setting up a different @INC, for different setups running on the same server.
Another crafty solution would be to use PerlInitHandler to push some libs onto @INC and PerlCleanupHandler to pop them away. Apache::PerlVINC in mp1 does exactly that. Feel free to port it to mp2 / talk to the author first?
http://search.cpan.org/~davem/Apache-PerlVINC-0.03/PerlVINC.pm
__________________________________________________________________ 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]
