http://www.perlmonks.org?node_id=347745


in reply to Dynamic DSN w/ Class::DBI Example

Have you looked into Class::DBI::BaseDSN? It does allow the DSN definition to be changed at run-time, which should be similar to what you need.