DHZ> use lib /path1/lib.pm
DHZ> ..

DHZ> and in the startup file of vhost 2

DHZ> ..
DHZ> use lib /path2/lib.pm
DHZ> ..

DHZ> This works for me.
DHZ> Both lib.pm's are separated because new perl interpreters are used for
DHZ> vhost1 and vhost2.

Thanks Helmut, I will try this solution (PerlOptions +Parent) later, after
learning this option of mod_perl...


I didn't realize that +Parent worked yet for the newer threaded apache/mod_perl.


If this method does not work out, you can also try running the code each request
like:

do /path2/lib.pm

or turning it into an include that you execute each request, say MyTools.inc,
and then $Response->Include it in Script_OnStart.

Regards,

Josh
________________________________________________________________
Josh Chamas, Founder                   phone:925-552-0128
Chamas Enterprises Inc.                http://www.chamas.com
NodeWorks Link Checker                 http://www.nodeworks.com


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



Reply via email to