On Apr 13, 2005, at 1:42 PM, Guest via RT wrote:
Show quoted text> Although there are ways to support both mp1 and mp2 with the same
> module, I don't know if the mp2 team is suggesting that module authors
> also rename their modules or support either version via a single
> Apache:: module. The document[1] doesn't really say.
I think it depends on the module. Apache::Dir isn't too complex. So if
it just needs to use the proper constants class, it can probably just
do something like this:
my $const_class = $ENV{MOD_PERL_API_VERSION}
? Apache2::Const
: Apache::Constants;
eval "use $const_class qw(DECLINED DIR_MAGIC_TYPE
HTTP_MOVED_PERMANENTLY)";
This assumes RC5, of course.
Regards,
David