in reply to DBI: $dbh-disconnect; yes, now, now, but not now!
Now, if you are closing the database in order to commit changes, I know the DBI has the facility to call COMMIT at any point without closing the DB connection. Or, optionally, if you aren't doing transactions, you can tell the DBI to AutoCommit, for those databases that support it. Otherwise, I don't send any need to open and close a DB connection except at the start and end of a program , respectively.
|
|---|