How can I call some initialisation code in role applied to an already existing object ?

Normally I use   after 'BUILD' for this.

When I call

  MyApp::Role::Job::Manager->meta->apply($lisa);

the object  lisa  exists and  so   a Sub BUILD { ... }

in MyApp::Role::Job::Manager doesn't be called.
So  where  can I place my init stuff I need for my role ?


Rolf Schaufelberger




Reply via email to