Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re^2: Adding a method to an existing object

by phaylon (Curate)
on Feb 17, 2012 at 19:06 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://954593]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2024-04-20 08:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found