On Wed, Aug 24, 2011 at 08:02:22PM -0300, Marcos Barbeitos wrote: > Howdy! Not sure if this is the right place to post this, but if I try: > > perl -e 'use Class::MOP::Class' > > in my system (Ubuntu 11.04) I get: > > Can't locate object method "initialize" via package > "Class::MOP::Class" at /usr/local/lib/perl/5.10.1/Class/MOP/Mixin.pm > line 16.
The Moose internals are a bit complicated and self-referential - in order for things to be initialized properly, you should only need to do 'use Moose' (or 'use Moose ()' if you aren't currently defining a class). This will load all of the appropriate underlying modules, and make sure things are initialized properly. -doy