I would just like to declare a read-only attribute in Moose that cannot be initialized when new is called. Therefore, after declaring the following:
package SOD::KuuAnalyze::ProdId; use Moose; has 'users' => (isa => 'ArrayRef[Str]', is => "ro"); 1;
I do not want the following to work:
my $prodid = SOD::KuuAnalyze::ProdId->new(users => ["one", "two"]);
new-operator perl attributes moose
ennuikiller
source share