OK, got it. Is it possible to use the same db connections in one request? if yes, could you please show me how to implement this if a cgi script calls many times other perl modules which requests db connections to work.
On 7/31/07, Perrin Harkins <[EMAIL PROTECTED]> wrote: > On 7/30/07, Ken Perl <[EMAIL PROTECTED]> wrote: > > I didn't run it under ModPerl::Registry > > Did you run it under some other mod_perl module, like > ModPerl::PerlRun? If it's a CGI script, and you aren't running it > through something like this, then you aren't running it through > mod_perl and you won't be able to use persistent connections. > > > Could I just run use the previous connections via DBI->connect_cache > > instead of the Apache::DBI in one single cgi script > > Not if you aren't running it through mod_perl. CGI scripts exit after > each request, so they can't do persistent connections. > > - Perrin > -- perl -e 'print unpack(u,"62V5N\"FME;G\!E<FQ`9VUA:6PN8V]M\"[EMAIL PROTECTED] ")'