> For example, I'd like to be able to have:
> 
> File 1: /usr/foo/.htaccess:
> PerlInitHandler MyAuth::Authnz.pm
> # We want this to load /modules/foo/MyAuth/Authnz.pm
> 
> 
> File 2: /usr/bar/.htaccess:
> PerlInitHandler MyAuth::Authnz.pm
> # We want this to load /modules/bar/MyAuth/Authnz.pm

Think what would happen if you did this in a Perl script:

BEGIN { @INC = '/modules/foo' }
use My::Module;
BEGIN { @INC, '/modules/bar' }
use My::Module;

The second use wouldn't do anything because Perl sees that it has
already loaded My::Module.

So the only way to do what you want is to run two separate servers (or
just use plain CGI - no mod_perl).

You're going to need to use different module names. But, if
MyAuth::Authnz contains a lot of functionality which you need in both
modules, then why not subclass it and put the foo/bar specific stuff
into a module which inherits from it?

clint

Reply via email to