If I'm misunderstanding you or you have a better approach which doesn't involve running the code, please let me know. (Hmm, creating local test suites targeting external modules?)
What I was thinking off was something like this. If Bar::foo(N) has a bug where it dies where N=0, when it should just return -1, then I might only apply my patch where eval { Bar::foo(0) } == -1 is false.
Of course this relies on whatever broken behaviour we're looking for being cheap to test for with no side effects. Make vague sense?
In reply to Re^3: Upgrade-proofing overridden subroutines
by adrianh
in thread Upgrade-proofing overridden subroutines
by Ovid
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |