Created
November 2, 2012 07:51
-
-
Save typester/3999350 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
use strict; | |
use warnings; | |
use lib 'lib'; | |
package Role { | |
use Any::Moose '::Role'; | |
sub hoge { | |
__PACKAGE__; | |
} | |
}; | |
package Foo { | |
use Any::Moose; | |
with 'Role1'; | |
sub hoge { | |
__PACKAGE__; | |
} | |
}; | |
warn Foo->new->hoge; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment