Apache-SessionManager
view release on metacpan or search on metacpan
Makefile.PL view on Meta::CPAN
'Apache::Session' => 1.54,
#"Apache::Request" => "0.33",
}, # e.g., Module::Name => 1.1
'clean' => {FILES => 't/httpd.conf t/error_log t/httpd'},
);
sub which_mod_perl {
my ($mp1,$mp2);
# First, we check mod_perl version in standard dir
$mp1 = require_mod_perl();
# Check if mod_perl installed version is mp1 or mp2 generation
if ( $mp1 >= 1.99 ) {
$mp2 = $mp1;
$mp1 = 0;
}
# Check mp2 under Apache2 dir
else {
$mp2 = require_mod_perl(2);
}
return ($mp1,$mp2);
}
sub require_mod_perl {
my $mp = shift;
# Check mod_perl 2 under Apache2 dir
if ( $mp == 2 ) {
delete $INC{'mod_perl.pm'};
eval { require Apache2 };
( run in 0.502 second using v1.01-cache-2.11-cpan-0d8aa00de5b )