Archive for September 13th, 2011
Moose tips
init_arg – use alternate attribute name in new() # in package Foo has qw(bar is ro init_arg quux); … # elsewhere my $foo = Foo->new( quux => 1 ); Foo has an attribute named “bar”, but we pass “quux” to the constructor. See Moose::Manual::Attributes / Constructor parameters (init_arg) init_arg – ban setting an attribute in […]
Read Full Post | Make a Comment ( None so far )