in reply to Apache2. Passing data between handlers
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.
Whitepages.com Development Manager (WDDC)
code('Perl') || die;