try $dbh->errstr() instead of $@?
-- Brother Frankus.
¤
In reply to Re: DBI error and $@ by frankus in thread DBI error and $@ by notsoevil