Skip to content

Instantly share code, notes, and snippets.

@wchristian
Created March 28, 2012 12:50
Show Gist options
  • Save wchristian/2225876 to your computer and use it in GitHub Desktop.
Save wchristian/2225876 to your computer and use it in GitHub Desktop.
Role test
package Bar;
use Role::Tiny;
sub foo { 1 }
1;
package Baz;
use Role::Tiny;
sub foo { 2 }
1;
use strictures;
package Load;
BEGIN{ require Role::Tiny };
use Role::Tiny::With;
with 'Bar';
with 'Baz';
print Load->foo();
__END__
output:
1
expected:
an error of some kind
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment