in reply to Re: dbh->disconnect or leave to scope
in thread dbh->disconnect or leave to scope
Of course this doesn't hold if you're using a different language. For instance in C++ stuff doesn't get closed at all and you'll leak memory. Alternately in a true garbage collected language like Java it won't get closed until the next gc run, and you can wind up running out of resources because of leaked handles, which is also bad.
But if you're coding in Perl, you might as well take advantage of the features it offers. And prompt cleanup of stuff is one of them.
|
|---|