Created
October 23, 2010 02:49
-
-
Save abh/641707 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env perl | |
package Foo::Role; | |
use Moose::Role; | |
before BUILD => sub { | |
print "Foo::Role::BUILD\n"; | |
}; | |
package Foo; | |
use Moose; | |
sub BUILD { | |
print "Foo::BUILD\n"; | |
} | |
package Bar; | |
use Moose; | |
extends 'Foo'; | |
with 'Foo::Role'; | |
package main; | |
Bar->new; | |
1; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment