![]() |
|
We don't bite newbies here... much | |
PerlMonks |
Re: Use Moose in Controller and Modelby thunders (Priest) |
on Jan 25, 2010 at 04:59 UTC ( [id://819395]=note: print w/replies, xml ) | Need Help?? |
I think the problems you are experiencing stem from not inheriting from Moose::Object. You can warn out the values in @ISA for the three different samples to verify. From the Moose documentation: extends (@superclasses) This function will set the superclass(es) for the current class. This approach is recommended instead of use base, because use base actually pushes onto the class's @ISA, whereas extends will replace it. This is important to ensure that classes which do not have superclasses still properly inherit from Moose::Object.
In Section
Seekers of Perl Wisdom
|
|