Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^2: changing object's methods at runtime

by adrianh (Chancellor)
on May 21, 2003 at 20:19 UTC ( [id://259868]=note: print w/replies, xml ) Need Help??


in reply to Re: changing object's methods at runtime
in thread changing object's methods at runtime

Overriding one instance's methods at runtime is not directly possible, unless I'm mistaken (which is entirely possible and often even likely).

While not the best solution in this instance (I'd subclass or go with Test::MockObject) it is possible to override methods at runtime - and it can occasionally be useful. See Micro Mocking: using local to help test subs for some examples.

  • Comment on Re^2: changing object's methods at runtime

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (2)
As of 2024-04-24 17:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found