in reply to Preventing database handles from going stale
sub ensure_connected { my ($self) = @_; unless ($self->connected) { $self->_populate_dbh; } } [download]