http://qs1969.pair.com?node_id=259692


in reply to changing object's methods at runtime

You'd have to create a new class which subclasses Apache::FakeRequest, and re-bless the object into that class.
Attempting to overwrite the method (e.g. which '*Apache::Request::lookup_uri = sub { ... }') would affect all Apache::Request objects within the script.

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