You need to load Test::Warn before perl compiles the warning_like() statements, because that function has a prototype. The easiest way may be to set a flag.
my $have_test_warn = 0; BEGIN { eval { require Test::Warn; Test::Warn->import(); $have_test_warn = 1; }; }
Then test for $have_test_warn in your SKIP blocks.
In reply to Re: Test::Warn, 'use' vs 'require'
by chromatic
in thread Test::Warn, 'use' vs 'require'
by asarih
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |