in reply to Re^2: Reconnecting to a mysqldb
in thread Reconnecting to a mysqldb
Fair enough. I just think you may run into problems if you try to use other tools that want to subclass DBI, like Apache::DBI or Class::DBI. There is an official way to do subclassing, which is discussed in the DBI docs. You can look at the connect_cached() method to see how it handles keeping the connection parameters around.