http://qs321.pair.com?node_id=401967


in reply to Re: interrupting a daemon
in thread interrupting a daemon

The DBI connection handle's destruction will should close the connection.

Unfortunately it is easy to show it does not always work that way out in the real world. Even the DBI docs suggest you explicitly disconnect. I can site personal experience with fairly current versions of Perl/DBI/DBD::Mysql that will let you accumulate open connections until you run out.