I've inherited some of Simon Cozen's modules and the first thing I want to do is update the distributions to a more modern format and move the test.pl files to a .t file and add more tests. Then I ran into a wee bit of a problem.
Class::Dynamic allows you to add code refs to the @ISA array to dynamically determine base classes -- even changing them randomly at runtime, if you're crazy. Unfortunately, as soon as I move test.pl to the t/10dynamic.t and run make test, I get the following warnings:
Can't locate package CODE(0x89c17e8) for @C::ISA at t/test.t line 22. Can't locate package CODE(0x89c17e8) for @C::ISA at t/test.t line 22.
The tests still pass but try as I might, I can't suppress that warning. Any suggestions? Solutions involving $SIG{__WARN__} do not seem appropriate as I don't want to step on other's code.
Update: I can use -X on the command line, but I don't want to disable all warnings. I'm now looking to see if I can use the warnings pragma to customize existing warnings.
Cheers,
Ovid
New address of my CGI Course.
In reply to Can't suppress missing package warning by Ovid
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |