and included this module in Test::Harnesspackage WarningsDie; use strict; use warnings; use Carp; # confess for warnings and death BEGIN { $SIG{__WARN__} = sub {confess $_[0]}; $SIG{__DIE__} = sub {confess $_[0]}; } 1;
Every test and module starts with use strict and use warnings.$ENV{HARNESS_PERL_SWITCHES} = "-Iblah/blah/blah -MWarningsDie";
My meditation:
it is comforting to use the test suite to rid your modules of warnings; give it a try.
rkg
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Die On Warnings
by perrin (Chancellor) on Sep 04, 2003 at 19:54 UTC | |
|
Re: Die On Warnings
by liz (Monsignor) on Sep 04, 2003 at 18:18 UTC | |
|
Re: Die On Warnings
by diotalevi (Canon) on Sep 04, 2003 at 21:13 UTC | |
|
Re: Die On Warnings
by antirice (Priest) on Sep 05, 2003 at 15:45 UTC | |
by rkg (Hermit) on Sep 05, 2003 at 17:50 UTC | |
by antirice (Priest) on Sep 05, 2003 at 18:09 UTC |