You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Lev Lvovsky <le...@sonous.com> on 2007/01/05 01:28:54 UTC
using Apache::DBI for regular perl scripts?
Hello,
Is there anything that would keep me from instituting the connection
maintenance of Apache::DBI into a daemonized perl script? Does it
have any need to be running from within mod_perl specifically?
If not, is it just as easy as doing a 'use Apache::DBI' before 'use
DBI'?
thanks!
-lev
Re: using Apache::DBI for regular perl scripts?
Posted by Lev Lvovsky <li...@sonous.com>.
On Jan 4, 2007, at 4:36 PM, Perrin Harkins wrote:
> On Thu, 2007-01-04 at 16:28 -0800, Lev Lvovsky wrote:
>> Is there anything that would keep me from instituting the connection
>> maintenance of Apache::DBI into a daemonized perl script?
>
> Don't do that. Use DBI->connect_cached instead.
didn't even see that! thanks for the help!
-lev
Re: using Apache::DBI for regular perl scripts?
Posted by Perrin Harkins <pe...@elem.com>.
On Thu, 2007-01-04 at 16:28 -0800, Lev Lvovsky wrote:
> Is there anything that would keep me from instituting the connection
> maintenance of Apache::DBI into a daemonized perl script?
Don't do that. Use DBI->connect_cached instead.
- Perrin