http://qs321.pair.com?node_id=218406


in reply to Re: Detecting a failed DBI connection
in thread Detecting a failed DBI connection

If $dbh isn't defined, call errstr() on it? :)