in reply to Re^3: Combining Ffile:fetch with MySQL
in thread Combining Ffile:fetch with MySQL

However, on the subsequent 4 $dbh->do statements you make no such tests.

... and with a little bit of RTFM, none of those tests is needed. Change

my $dbh = DBI->connect($dsn, $user, $password) or die "Couldn't connect to database: " . DBI->errstr;

to

my $dbh = DBI->connect($dsn, $user, $password, { RaiseError => 1, Prin +tError => 0 }) or die "Couldn't connect to database: " . DBI->errstr;

and DBI will automatically check for errors, no manual checks needed.

Alexander

--
Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)