(6/16/10 6:28 PM), Kate Yoak wrote: >>> >> >> Because inner, like super, has, extends, with, requires, augment, before, >> around, after and override, is a "keyword" and not a method. >> >> > Well, that explains a lot. It also makes my life difficult as such a beast > usually comes up long after I've said no Moose; > I normally do so as early as possible so I could start using things like > Error.pm - and prefer not writing and "real code" with Moose namespace still > on. > > So what's inner's full name? How do I get at it? > >
Because Moose uses Sub::Exporter, you can rename all the exports using something like: use Error; use Moose ':all' => { -prefix => "moose_" }; moose_has pitouey => ( is => 'ro', ); moose_augment hlagh => { moose_inner(); }; Shawn