in reply to Testing my carping
There is Test::Exception. It might be what you are looking for
Update: also found Test::Trap and Test::Warn.
Frying pan on the stove
Results (330 votes). Check out past polls.