as written in the manpage, this is rarely used, it will be called for you
when the handle is going out of scope, but if something is still left in the
buffer some warnings will be generated.


-----Original Message-----
From: Vladislav Safronov
To: [EMAIL PROTECTED]
Sent: 8/15/00 7:26 PM
Subject: Question about $sth->finish;

Hi,

Could you have a look at the lines and answer the question ..
---
sub foo {
        my $dbh = shift;

        my $sql = ...

        my $sth = $dbh->prepare($sql);
        $sth->execute;
        $sth->finish;
}
===
Do I always need to call $sth->finish? Wouldn't it be automaticly called
when
sub foo ends (when my variable $sth get destroyed)?

Vlad.

Reply via email to