|Perl Monk, Perl Meditation|
Re: Use Moose in Controller and Modelby thunders (Priest)
|on Jan 25, 2010 at 04:59 UTC||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:
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.