Batara Kesuma wrote:
Hi,

How can I pass $dbh value from PerlResponseHandler to PerlCleanupHandler
to be disconnected? My scripts are running in ModPerl::Registry, and I
don't want to do $dbh->disconnect() at the end of every scripts. So I
try to write a module in PerlCleanupHandler to clean up the DB handler
at the end of every request.

1) use Apache::DBI

2) if not, refer to:
http://perl.apache.org/docs/2.0/user/handlers/http.html#PerlCleanupHandler
http://perl.apache.org/docs/2.0/user/coding/coding.html#Getting_the_C__r__Object

--
__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com

--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html



Reply via email to