Class::Method::Cannot?
Ovid
publiustemp-londonpm at yahoo.com
Sun May 4 12:16:56 BST 2008
--- Aaron Trevena <aaron.trevena at gmail.com> wrote:
> > Doing things properly is obviously a Good Thing, but it seemed a
> heck of a
> > lot simpler to say "this, minus these" than to go off and add do
> fun stuff
> > with extra encapsulating classes, etc. :)
>
> Class::Trait might help with this - access the stuff you need via a
> Trait rather than inheritence.
Despite being the maintainer of Class::Trait, I recommend that people
take a look at Moose::Role instead. You don't have to completely buy
in to Moose to use Moose Roles, but if you want to, it's there and you
already have complete integration.
http://search.cpan.org/dist/Moose/lib/Moose/Role.pm
Cheers,
Ovid
--
Buy the book - http://www.oreilly.com/catalog/perlhks/
Perl and CGI - http://users.easystreet.com/ovid/cgi_course/
Personal blog - http://publius-ovidius.livejournal.com/
Tech blog - http://use.perl.org/~Ovid/journal/
More information about the london.pm
mailing list