Skip Menu |

This queue is for tickets about the Object-Iterate CPAN distribution.

Report information
The Basics
Id: 17333
Status: resolved
Worked: 5 min
Priority: 0/
Queue: Object-Iterate

People
Owner: bdfoy [...] cpan.org
Requestors: SREZIC [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.52
Fixed in: (no value)



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
The Test::Manifest code I had in version 0.52 is really dated. I knew about that problem a long time ago, but I guess the fix did not make it into all of my Makefile.PLs. Thanks for the heads-up. This is fixed in Object-Iterate-0.53 which I just uploaded to CPAN.