On Fri, 11 Aug 2000, David L. Nicol wrote:

[...]
> Redefining a method during run time --- is that even a feature that
> needs to be supported?

        I think so.  A couple of examples are the Memoize module, which
works by rewriting your memoized function into something that uses
caching, then replacing the old version with the new version in the stash.

        Another time you would want to do this would be the following: you
write your AUTOLOAD function such that, when it receives a request it can
handle, it creates a sub to handle the request and installs the sub 
directly in the stash so that, the next time you need that function, you
don't need to traverse @ISA before going to AUTOLOAD.

                                Dave 

Reply via email to