Skip to content

Instantly share code, notes, and snippets.

@hatyuki
Created October 21, 2009 03:03
Show Gist options
  • Save hatyuki/214810 to your computer and use it in GitHub Desktop.
Save hatyuki/214810 to your computer and use it in GitHub Desktop.
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