in reply to Re: Passing Database handles to other modules.
in thread Passing Database handles to other modules.

The only trouble with this approach is that in a mod_perl setting that object could exist for hours with no use, during which time that connection might time out. If you fetch your $dbh from Apache::DBI at least once per request, you will avoid this. Apache::DBI will notice that the connection is dead and reconnect.
  • Comment on Re: Re: Passing Database handles to other modules.