The Test::Manifest detection in Makefile.PL does not work: the sub
ExtUtils::MM_Any::test_via_harness is always redefined, regardless if
the module exists. To see where's the problem just try this script:
#!perl
sub foo {
warn "Original foo";
}
if (0) {
sub foo {
warn "This should never be defined";
}
}
foo();
__END__
If you want to redefine a sub conditionally, then you have to use globs,
e.g.:
*foo = sub { ... };
Or do everything in a string-eval block.
Regards,
Slaven