Created
October 21, 2009 03:03
-
-
Save hatyuki/214810 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
package Hoge; | |
use Data::Dumper; | |
use Mouse; | |
use MouseX::Types::Mouse qw/ ArrayRef Str /; | |
has hoge => ( | |
is => 'rw', | |
isa => ArrayRef[Str], # -- Syntax Error | |
); | |
no Mouse; | |
__PACKAGE__->meta->make_immutable; | |
sub run | |
{ | |
print Dumper shift->hoge, "\n"; | |
} | |
1; | |
__END__ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment