> On Tue, 15 Aug 2000, Vladislav Safronov wrote: > > > 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)? > > $sth doesn't always get destroyed when foo ends (due to a bug in all > perls). But otherwise, yes. "my" (perl's my) variables doesn't always get destoyed, does it???? Perl's documentation say that "my" vars are the most safe since they get destroyed when they get out of scope ... Vlad.
- HTML Template Comparison Sheet ETA Gunther Birznieks
- Re: HTML Template Comparison Sheet ETA Perrin Harkins
- Re: HTML Template Comparison Sheet ETA Matt Sergeant
- Content negotiation Was: Re: HTML ... David Hodgkinson
- Question about $sth->finish... Vladislav Safronov
- Re: Question about $sth-&g... Matt Sergeant
- RE: Question about $s... Vladislav Safronov
- RE: Question abou... Matt Sergeant
- Re: Question about $s... Keith G. Murphy
- Re: Question abou... Matt Sergeant
- Re: Question about $sth-&g... Tim Bunce
- RE: Question about $s... Vladislav Safronov
- Re: HTML Template Comparison Sheet... Drew Taylor
- Re: HTML Template Comparison S... Nelson Correa de Toledo Ferraz
- Re: HTML Template Comparis... Drew Taylor
- Re: HTML Template Comparis... Sam Tregar
- Re: HTML Template Com... Nelson Correa de Toledo Ferraz