If $dbh isn't defined, call errstr() on it? :)
In reply to Re: Re: Detecting a failed DBI connection by chromatic in thread Detecting a failed DBI connection by Massyn