in reply to time in mod_perl
It's hard to find because it's hard to know how to phrase the question. I suspect it's a scoping issue. The mod_perl environment is sometimes a little surprising in that respect. If you post some of the code it'd probably be a lot easier to figure out.
My initial guess is that you're using Apache::Registry in a way that exposes you to closures by accident. I first started with mod_perl by converting existing CGIs into mod_perl apps with a handler like this:
# <Files ~ ".pl$"> # SetHandler perl-script # PerlHandler Apache::Registry # </Files>
If I recall correctly, it was wrapping my whole .pl file in a big function and causing strange things to happen. I got the hang of it after a while, but not until I read things like Closures and scope, Closures question, and more.
I had a bunch of nice articles bookmarked that explained the problem really well, but they seem to have disappeared on me. ikegami explains it really well below anyway.
-Paul
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: time in mod_perl
by Bruce32903 (Scribe) on Mar 27, 2007 at 19:13 UTC | |
by jettero (Monsignor) on Mar 27, 2007 at 19:24 UTC | |
by Bruce32903 (Scribe) on Mar 27, 2007 at 19:51 UTC |