Ovid wrote:
David Cantrell <[EMAIL PROTECTED]> wrote:
Fergal Daly wrote:
use Test::NoWarnings;
I like to use Fewer::Annoying::Dependencies.
Same here, but Test::NoWarnings is hardly annoying.

Sure, on its own. But then there's lots of other modules which, on their own, aren't annoying. But taken together they're an irritation, especially when writing software that is going to be used by people who aren't perl programmers.

Of course, one could solve this problem by only using core modules ...

That's what I do, as far as is practical. And in doing so I'm quite happy to reinvent small wheels. $SIG{__WARN__} = sub { die(@_) } is small. I can override it locally for the few times I need to test that a warning is emitted deliberately.

--
David Cantrell

Reply via email to