Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^2: Adding a method to an existing object

by phaylon (Curate)
on Feb 17, 2012 at 19:06 UTC ( #954593=note: print w/ replies, xml ) Need Help??


in reply to Re: Adding a method to an existing object
in thread Adding a method to an existing object

Note that this will permanently change the MyApp class, which might not be what is desired. I tend to use MooseX::Traits in most of the general cases.


Ordinary morality is for ordinary people. -- Aleister Crowley


Comment on Re^2: Adding a method to an existing object
Re^3: Adding a method to an existing object
by chromatic (Archbishop) on Feb 17, 2012 at 19:20 UTC

    I should have mentioned that. It's no problem in my case, because I know none of the plugins will override each other (and no code wants to use an unmodified MyApp object), but Moose traits are more general and applicable.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (9)
As of 2014-12-21 12:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (105 votes), past polls