Perl: the Markov chain saw | |
PerlMonks |
Scope of @INC in mod_perl 2by atemon (Chaplain) |
on Nov 04, 2009 at 06:45 UTC ( [id://804865]=perlquestion: print w/replies, xml ) | Need Help?? |
atemon has asked for the wisdom of the Perl Monks concerning the following question: Hi Monks, Background : Problem : The problem (for me) is that the path added to @INC for one server (VirtualHost) is available to other also. i.e. I added the path /home/mywebsite1.com/www/library to the first virtual host via its start-up file and /home/mywebsite2.com/www/library to second virtual host. When I try to use some modules with same name as one used with previous servers(VirtualHost), its trying to load from the path added by previous servers (VirtualHost). Is there a way to restrict the scope of library path added, to the current VirtualHost only? Cheers ! --VC
Back to
Seekers of Perl Wisdom
|
|