in reply to Database connection checking.

Slightly depends on what you mean by exists. I would test the handle returned by DBI connect is defined then use the "ping" method documented in the DBI docs.