Core warnings like this are typically enabled and disabled with a lexical pragma. With the -W command line parameter, you can force warnings to be turned on even where you didn't request it. If you want to disable warnings in "other" code you'd need to hook the global $SIG{__WARN__}. To get around this specific warning ... lesse... you could just empty out the target symbol table. This clobbers everything below your target and allows for some really bad action at a distance.
In short, all the fixes I'm thinking of now are really, really terrible ideas. Please don't do them at work. I'll buy you a mocha.
%{$caller . '::} = (); # clobber our caller. local $SIG{__WARN__} = 'IGNORE'; # temporarily turn off all warnings ( +this is the least bad, imho)
⠤⠤ ⠙⠊⠕⠞⠁⠇⠑⠧⠊
In reply to Re: unimport warnings in another package
by diotalevi
in thread unimport warnings in another package
by wazzuteke
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |