Apache-Test
view release on metacpan or search on metacpan
lib/Apache/TestServer.pm view on Meta::CPAN
# string and various variations made by distributions which mangle
# that string
# Foo-Apache-Bar/x.y.z
($self->{rev}) = $self->{version} =~ m|/(\d)\.|;
if ($self->{rev}) {
debug "Matched Apache revision $self->{version} $self->{rev}";
}
else {
# guessing is not good as it'll only mislead users
# and we can't die since a config object is required
# during Makefile.PL's write_perlscript when path to httpd may
# be unknown yet. so default to non-existing version 0 for now.
# and let TestRun.pm figure out the required pieces
debug "can't figure out Apache revision, from string: " .
"'$self->{version}', using a non-existing revision 0";
$self->{rev} = 0; # unknown
}
($self->{revminor}) = $self->{version} =~ m|/\d\.(\d)|;
( run in 0.637 second using v1.01-cache-2.11-cpan-702932259ff )