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.
|
---|
In Section
Seekers of Perl Wisdom