Under Moose you need to add traits => ["Array"] to the attribute declaration. See Moose::Meta::Attribute::Native::Trait::Array.
With Moo you'd use handles_via => "Array" but you'd need to install MooX::HandlesVia first.
In reply to Re^4: Passing arrayref to Moose attributes
by tobyink
in thread Passing arrayref to Moo attributes
by darcrossito
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |