in reply to Re^4: SQL in perl/tkin thread SQL in perl/tk
After the connect do DBI->trace(3);, see Tracing for an explanation of trace levels.
Update: See also RaiseError attribute in the DBI docs.