Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^3: Do you think it's kosher to "re-bless" a Moose object?

by stvn (Monsignor)
on Nov 23, 2011 at 19:27 UTC ( #939713=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Do you think it's kosher to "re-bless" a Moose object?
in thread Do you think it's kosher to "re-bless" a Moose object?

It would be very helpful indeed if you could elaborate a bit on just what you mean by “early enough” ...

He means that if you know what traits you want applied before the instance is created, then MooseX::Traits is likely useful (since you use it prior to constructing an instance). But if you don't know what traits you want to apply until after, then you can just use runtime role application (there is a cookbook for that I believe).

-stvn


Comment on Re^3: Do you think it's kosher to "re-bless" a Moose object?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (6)
As of 2014-07-13 09:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (249 votes), past polls