in reply to Re^2: Unit test of script fails unless Test::Warnings is used?!in thread Unit test of script fails unless Test::Warnings is used?!
See also (perhaps instead) Test::Fatal.