Hi there, list,

I've been trying for what feels like months now to find some way to have
two directories specify the same module name to PerlInitHandler but to
use two different modules.

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


Impetus: version control. Imagine 'foo' as the production code and 'bar'
as the testing code.


I've come across quite a few ways we can fake it... but none of them
elegant.

Can anybody think of a way to achieve directory-based @INC?
--
Devin







Reply via email to