in reply to Re^2: Test::Warn, 'use' vs 'require'
in thread Test::Warn, 'use' vs 'require'
Make that:
&warning_like( sub { warn "warning!" }, qr(warning), 'basic warning' +);
(note the &) so it will work even if the prototype gets loaded soon enough.
Update: Ah, yes, & prototypes don't have this problem like some other prototypes do.
- tye
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Test::Warn, 'use' vs 'require' (&)
by adrianh (Chancellor) on Sep 28, 2006 at 18:19 UTC |