Anton Slabbinck wrote:
> 
> Hi,
> 
> I'm having a problem with Global and virtual hosting.
> For each virtual server I have a PerlSetVar Global to a unique directory. In each of 
>those directories there exists a General.pm for that site. In
> the page I have a 'use General;'.
> 
> The problem is, from time to time, Apache::ASP uses the wrong General.pm (from an 
>other virtual server, application).
> 
> Does anybody have experience with this problem.
> 

In addition to Philip's insight, you might look at 
Apache::PerlVINC which seems to take a unique approach 
by forcing the reload per request of specified modules.  
I have never used it before, but it seems like it could work,
and the performance hit may not be too great either if
modules like General.pm are small.

Also, you could have a General.inc, and then load it
for each ASP application like:

sub Script_OnStart {
  $Response->Include('General.inc');
}

But, it would not be able to define things in the General::
package, or we are back to square one, but if all it did
was define local subs or globals, that could work, as they 
would then be localized to each ASP application.

--Josh

_________________________________________________________________
Joshua Chamas                           Chamas Enterprises Inc.
NodeWorks Founder                       Huntington Beach, CA  USA 
http://www.nodeworks.com                1-714-625-4051

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

Reply via email to