There's more than one way to do things | |
PerlMonks |
Moo error message not understoodby davies (Prior) |
on Jan 17, 2014 at 17:36 UTC ( [id://1070985]=perlquestion: print w/replies, xml ) | Need Help?? |
davies has asked for the wisdom of the Perl Monks concerning the following question:
My code, in which I can see no material differences from the documentation (http://search.cpan.org/~haarg/Moo-1.004002/lib/Moo.pm), crashes as follows:
I'm slightly surprised by the error message's reference to an "object method" when I'm trying to address a property, but I suspect that this is merely a Perl idiosyncracy. The assignment in the "new" command works - printing the object using Data::Dumper reveals the isbn property set as I would expect. I tried inserting the "namespace::clean" line from the docs, but that changed nothing. What should I look at next, please? Regards, John Davies
Back to
Seekers of Perl Wisdom
|
|