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


in reply to Printing SQL query in Perl

You can set DBI_TRACE env variable to 1 (or more for higher verbosity) and see error output of your script. See `man DBI` for details.