Perl-Sensitive Sunglasses | |
PerlMonks |
Re: Sharing database handleby Fletch (Bishop) |
on Apr 18, 2002 at 13:52 UTC ( [id://160202]=note: print w/replies, xml ) | Need Help?? |
Unless you're very cozy with the database backend (enough so that you can figure out how to do some sort of locking of whatever communications mechanism it's using to talk to its server), you really don't want to do this. This is why things such as Apache::DBI usually set up persistent handles after the child processes have forked. Check out POE::Component::DBIAgent and POE for another possibility. As for the second, DBI has a ping method. Check the docs.
In Section
Seekers of Perl Wisdom
|
|