in reply to Re: Inserting data in Mysql
in thread Inserting data in Mysql

Or instead of checking for errors, you can use the RaiseError => 1 option in DBI->connect. Very useful, and has all the desired information in the error messages.