Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: add method at runtime

by roboticus (Canon)
on Jan 29, 2013 at 17:23 UTC ( #1015912=note: print w/ replies, xml ) Need Help??


in reply to add method at runtime

Yes, it's possible. The reasons and benefits, however, vary with the type of task you're doing.

Generally, when you find the need to do it, you'll pretty much know the advantages. At that point, you probably need to contemplate the disadvantages as well, though. ;^)

Update: Check out How can I use AUTOLOAD to magically define get and set methods for my member data? for an example.

...roboticus

When your only tool is a hammer, all problems look like your thumb.


Comment on Re: add method at runtime

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (7)
As of 2014-09-19 03:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (129 votes), past polls