in reply to What to do when DBI connect fails

If your database handle is invalid you cannot call disconnect on it. Also, RaiseError elevates a failure to connect to an exception. You'll have to trap that in an eval, or not use RaiseError.


Dave