|more useful options|
Re: add method at runtimeby LanX (Canon)
|on Jan 29, 2013 at 17:23 UTC||Need Help??|
> Hi is it possible to add methods and properties at runtime,like in Python?
Yes, semantically pretty much the same way.
For instance see Re: change perl function in runtime
> and why would there be need to do that,why is that an advantage anyway?
Monkey patching is a way for module users to dynamically adjust foreign modules to their temporary needs w/o changing the installed and officially maintained code.
(For instance this can improve compile/load time. IIRC does (did?) CGI.pm something comparable.)