![]() |
|
laziness, impatience, and hubris | |
PerlMonks |
Re: Apache2. Passing data between handlersby gryphon (Abbot) |
on Apr 25, 2007 at 00:24 UTC ( #611884=note: print w/replies, xml ) | Need Help?? |
Greetings artemave,
I think the problem here is that there are two seperate HTTP requests. First, the user sends an HTTP request for a page that executes code out of your first handler and ends with a return of SERVER_ERROR. That's going to complete the HTTP request and redirect the browser to dir_browse::error. So anything in pnotes will not exist across the two requests. You could try a different approach, maybe. You might want to look into calling dir_browse::error in the first handler just before you return SERVER_ERROR. I don't know the rest of your app, but also, you may want to look at throwing exceptions. DISCLAIMER: Note that this is all from my tired head without any testing. I could be very wrong. gryphon
In Section
Seekers of Perl Wisdom
|
|