After looking at this further, it turns out that Perrin's suggested code *does* work, but only in the PerlResponseHandler or earlier stages. And unfortunately, I mis-stated the original problem... which is that I am trying to retrieve that pnotes object (Class::DBI instance) in _PerlCleanupHandler_ (not PerlResponseHandler as originally stated).
When I try to retrieve this Class::DBI object from the Cleanup Handler, the pnotes values are totally gone. However, regular scalers that I've put in 'notes' are still there. Perhaps pnotes has (by design) already been cleaned up prior to the PerlCleanupHandler stage? FYI, this happens whether or not I define PerlCleanupHandler in the server conf file or dynamically via $r->push_handlers. thanks Eric Perrin last wrote: > > On further investigation, the problem seems to be that the > object is > > losing its namespace. > > That's not it. Many people have successfully stored objects > in pnotes > before. > > > In the first handler (where I define > > the object and store it in pnotes) I'm logging the value of "ref > > $dbrecord" and getting the correct Class::Object value. In > the second > > handler (where I retrieve the object from pnotes and try to > access a > > method), I'm logging the "ref $dbrecord" and getting a blank (""). > > Are you certain that you have the same request object in both > cases? If > your first handler is handling an index request, the second > one might be > a totally different request object. Check $r->is_initial_req(). -- Reporting bugs: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html