Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
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
Replies are listed 'Best First'.
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 lurking in the Monastery: (5)
As of 2015-08-01 02:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (285 votes), past polls