Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Role over subclasses

by grantm (Parson)
on Nov 23, 2011 at 05:34 UTC ( #939596=note: print w/ replies, xml ) Need Help??


in reply to Role over subclasses

I am ... wondering if this can be done without the use of a module

Um perhaps it can but why on earth would you? A good place to find out about Roles in Perl is the Moose Manual. There are other ways to share related pieces of functionality *across* your class hierarchy but they will be considerably more work for the programmer, won't scale well across a large code base and will be harder to debug. If you're not going to use the power of pre-written code from CPAN then you're not using Perl to its full advantage.

Replies are listed 'Best First'.
Re^2: Role over subclasses
by mhearse (Chaplain) on Nov 23, 2011 at 16:32 UTC
    I am going to use MRO::Compat, I think it does what I need.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://939596]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (12)
As of 2016-07-27 14:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What is your favorite alternate name for a (specific) keyboard key?


















    Results (243 votes). Check out past polls.