On Tuesday 29 April 2008 03.24.48 Michael G Schwern wrote: > > BTW: Test::Warn suck a bit because it doesn't check the warning you emit > > but the _first_ line of the warning you emit (hmm, time for a patch > > maybe). > > All the warnings_* functions take an array ref of warnings.
You can't test for "warn qq{1\n2}". You could test for two "warn" calls but not a warning with embeded new line directly. Try. I'll write a patch next time it bothers me. Nadim.