Try using just what I wrote before:
print $sth->errstr unless $sth->execute(@arguments) > 0;
What you posted above doesn't capture the actual return value of the 'execute' call. You might need to say "$dbh->errstr" instead of "$sth->errstr".
In reply to Re^3: Perl DBI: problems inserting data to a table
by boftx
in thread Perl DBI: problems inserting data to a table
by homeveg
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |