In this statement you create the OLE object, or if that fails, you die with a message UNLESS it did not fail...Read that again... You want to
remove the unless $dbh
No! He creates a database connection (or dies), unless
he has one already. Thats a fully valid caching technique.