perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From J Matisse Enzer <mati...@matisse.net>
Subject Re: Apache2 namespace
Date Sun, 03 Jul 2005 21:39:38 GMT

On Jul 3, 2005, at 2:10 PM, Jim Albert wrote:
> Can you give me the logic to handle that properly in a single code 
> file. Thanks again.
>

I think your key here is the MOD_PERL_API_VERSION environment variable.

BEGIN {
    if ( $ENV{MOD_PERL_API_VERSION} == 2 ) {
        # do mp2 stuff
    }
}
-------------------------------------------------------
Matisse Enzer <matisse@matisse.net>
http://www.matisse.net/  - http://www.eigenstate.net/
415-225-6703 (work/cellphone)
415-401-8325 (home)


Mime
View raw message