Created
December 11, 2009 08:52
-
-
Save lopnor/254081 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
#!perl | |
use strict; | |
use warnings; | |
{ | |
package MyRole; | |
use Moose::Role; | |
} | |
{ | |
package MyClass; | |
use Moose; | |
has myrole => ( | |
is => 'ro', | |
isa => 'RoleName', | |
default => 'MyRole', | |
); | |
} | |
my $c2 = MyClass->new; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment