in reply to unimport warnings in another package
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)
⠤⠤ ⠙⠊⠕⠞⠁⠇⠑⠧⠊
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: unimport warnings in another package
by wazzuteke (Hermit) on Mar 21, 2007 at 13:05 UTC | |
by diotalevi (Canon) on Mar 21, 2007 at 15:42 UTC |