http://www.perlmonks.org?node_id=1012850


in reply to PER DBI gives selectrow_array error

You're not error checking properly and have turned off RaiseError

my $sth = $dbh->prepare ...
can fail, with RaiseError it will die, but without RaiseError it won't die (stop your program)

So either use  if( my $sth = $dbh->... ) or turn on RaiseError and let it die, or catch it with eval or do whatever