Beefy Boxes and Bandwidth Generously Provided by pair Networks Bob
Just another Perl shrine
 
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 cooling their heels in the Monastery: (6)
As of 2014-04-21 02:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (489 votes), past polls