in reply to Re: Test::Warn, 'use' vs 'require'
in thread Test::Warn, 'use' vs 'require'
In other words, to make sure the code compiles without warnings if the mode isn't there, this should work:
warning_like( sub { warn "warning!" }, qr(warning), 'basic warning');
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Test::Warn, 'use' vs 'require' (&)
by tye (Sage) on Sep 28, 2006 at 01:49 UTC | |
by adrianh (Chancellor) on Sep 28, 2006 at 18:19 UTC |