More attribute options
Accessors can automatically dereference ArrayRef and HashRef type constraints.
my $foo = Foo->new(bar => [ 1, 2, 3 ]);
foreach my $blah (@{$obj->bar}) { ... } # yuk!
continued...
| moose |
Accessors can automatically dereference ArrayRef and HashRef type constraints.
my $foo = Foo->new(bar => [ 1, 2, 3 ]);
foreach my $blah (@{$obj->bar}) { ... } # yuk!
continued...