Subject: | mod_perl version detection in CGI::Cookie |
Hi,
I ran into a problem with the mod_perl version detection in CGI::Cookie.
I run mod_perl 1.29, but CGI::Cookie assumes mod_perl 2, and thus requires the non-existent Apache::RequestUtil.
The culprit seems to be a messed up '=~' in line 29 of CGI/Cookie.pm.
--- Cookie.pm.3_0_6 Mon Mar 14 10:45:08 2005
+++ Cookie.pm Mon Mar 14 10:46:01 2005
@@ -26,7 +26,7 @@
eval "require mod_perl";
if (defined $mod_perl::VERSION) {
my $float = $mod_perl::VERSION;
- $float = ~ s/^.+?([\d.]+).+$/$1/;
+ $float =~ s/^.+?([\d.]+).+$/$1/;
die "mod_perl version: $float";
if ($float >= 1.99) {
$MOD_PERL = 2;
CU, Bernhard