On 25 May 2004, at 18:31, Ovid wrote: [snip]
So I wrote a little module, Sub::Override, to do that for me. I can replace subs, explicitly
restore them to their original value or just let the object fall out of scope and have the subs
automatically restored. However, this seems like such an obvious little module that *someone*
must have written it. Alas, I cannot find it on the CPAN. Is it out there and I missed it, or is
this something I should upload?
[snip]
Hook::Lexwrap?
It's what I normally use for this sort of thing, and you can short-circuit the original method in a pre- wrapper.
Adrian