Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^2: Overloading subs = weirdness in mod_perl

by cfreak (Chaplain)
on Nov 15, 2004 at 22:50 UTC ( [id://407997]=note: print w/replies, xml ) Need Help??


in reply to Re: Overloading subs = weirdness in mod_perl
in thread Overloading subs = weirdness in mod_perl

I have other subs that work just fine with the same setup. It only happens when the $self->{apr} gets modified. The persistance is not a problem because the correct modules get loaded per request. Even if the name change is persistant for the one site that shouldn't matter (I don't think it is). Somehow the memory location where I stored the original routine gets overwritten ... you know I think I might know the problem ... I wonder if, by modifying anything in the $self variable that it changes the state of chain of references .... hmm I'll have to investigate that further.

In the meantime I actually worked around the problem by creating a list_images() sub in the SWMetal::Buffs module, for this particular one I didn't need to call my modified routine in the entire program.

Log In?
Username:
Password:

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

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

    No recent polls found