Just another Perl shrine | |
PerlMonks |
Resolving 'prototype mismatch' warningby 1nickt (Canon) |
on Feb 15, 2016 at 03:16 UTC ( [id://1155222]=perlquestion: print w/replies, xml ) | Need Help?? |
1nickt has asked for the wisdom of the Perl Monks concerning the following question: Learned monks, I am working on a test script: Output:
I understand why the warning is printed (the two modules have identical APIs), and I know I could work around it by making separate test files, but that's not desirable. Also, it's just a warning and the subs work fine when the second module is loaded, but the warnings are undesirable. I have searched but not found a way to clear the symbol table so the second time through the loop the subs can be imported without the warning. I can't use any non-core modules for the solution. Any help greatly appreciated!
The way forward always starts with a minimal test.
Back to
Seekers of Perl Wisdom
|
|