Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^5: Dynamically adding methods to Moo class

by Arunbear (Parson)
on Apr 24, 2014 at 12:51 UTC ( #1083578=note: print w/ replies, xml ) Need Help??


in reply to Re^4: Dynamically adding methods to Moo class
in thread Dynamically adding methods to Moo class

Not part of Moo, but ...

use Sub::Install; Sub::Install::install_sub({ code => sub { ... }, into => $package, as => $subname });
Link: Sub::Install


Comment on Re^5: Dynamically adding methods to Moo class
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (7)
As of 2016-02-12 23:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?





    Results (415 votes), past polls