Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ cat Foo.pm
- package Foo;
- use warnings::register;
- sub bar { warnings::warnif("Test"); }
- 1;
- $ perl -e'use Foo; Foo::bar();'
- $ perl -e'use warnings; use Foo; Foo::bar();'
- Test at -e line 1
- $ perl -e'use Foo; use warnings; Foo::bar();'
- Test at -e line 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement