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 reply to Re: Use Moose in Controller and Model
by thunders
in thread Use Moose in Controller and Model
by sman
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |