Skip to content

Instantly share code, notes, and snippets.

@dagolden
Created March 19, 2015 19:38
Show Gist options
  • Save dagolden/87decf0b33fafe24c99f to your computer and use it in GitHub Desktop.
Save dagolden/87decf0b33fafe24c99f to your computer and use it in GitHub Desktop.
#!/usr/bin/env perl
use v5.10;
use strict;
use warnings;
package Bar;
use warnings::register;
sub hello {
warnings::warnif( "problem" );
print "Hello\n";
}
package Foo;
sub foo_hi { Bar::hello() }
package Baz;
use warnings FATAL => 'all';
sub baz_hi { Foo::foo_hi }
package main;
Baz::baz_hi();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment