On Sat, Jun 27, 2009 at 08:46:12AM -0700, Joshua ben Jore wrote: > Without reading B::Hooks::OP::blah to know how it works, I notice > you're calling import from the forcewarn package, not the package you > want to affect. Consider: > > eval " > package $target_package; > warnings->import( FATAL => 'all' ); > " > > instead. Also, you should require warnings if you're going to call a > method on it. I know you probably already have it loaded but it's good > practice.
Since the effect of warnings->import is lexical, this won't do anything, will it? hdp.