----- Original Message -----
From: "Bart Lateur" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, February 07, 2002 19:14
Subject: Re: Perl DBI->connect


> On Thu, 7 Feb 2002 12:14:02 -0800, Michael A Chase wrote:
>
> ># You don't need to disconnect, each assignment to $dbh does that for
you.
>
> If only with a warning.

You get a warning if you let the program exit without disconnecting.
Letting $dbh go out of scope at the end of the loop might avoid the warning,
but I'm not completely sure.

It is definitely not necessary to call disconnect() every time through the
loop.
--
Mac :})
** I normally forward private questions to the appropriate mail list. **
Ask Smarter: http://www.tuxedo.org/~esr/faqs/smart-questions.htm
Give a hobbit a fish and he eats fish for a day.
Give a hobbit a ring and he eats fish for an age.



Reply via email to