Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: changing object's methods at runtime

by Anonymous Monk
on May 21, 2003 at 12:05 UTC ( [id://259696]=note: print w/replies, xml ) Need Help??


in reply to changing object's methods at runtime

my $req = Apache::FakeRequest( uri='/foo/bar', is_main=>1...); *Apache::FakeRequest::request_uri = sub{ #gen the uri here };

This should generate a warning

Subroutine Apache::FakeRequest::request_uri redefined at...

Which is your indication that it worked and only affects the FakeRequests not the real ones.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://259696]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (2)
As of 2024-04-20 06:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found