The trace output goes to stderr by default, not stdout. You need to redirect it to the browser or to a file.
To redirect it to the browser you need to do this:
use CGI::Carp qw(fatalsToBrowser warningsToBrowser);
Then after outputting the html header, add this:
When redirected to the browser via
warningsToBrowser, they show up as html comments, so you'd need to "view source" to see that output.
To redirect the trace output to a file, you add the optional "file" parameter to the DBI->trace call.
http://search.cpan.org/~timb/DBI-1.622/DBI.pm#Trace_Output<!-- warning: DBI connect('bcpadb:instance28854.db.xeround.com:18847','maxwell175',...) failed: Can't connect to MySQL server on 'instance28854.db.xeround.com' (111) at /home/www/mdtech.us.ms/BCPA/BCPA_form/PROC/index.cgi line 17 -->
<h1>Software error:</h1>
<pre>Could not connect to the database Can't connect to MySQL server on 'instance28854.db.xeround.com' (111) at /home/www/mdtech.us.ms/BCPA/BCPA_form/PROC/index.cgi line 17.</pre>
<p>
For help, please send mail to the webmaster (<a href="mailto:[no address given]">[no address given]</a>), giving this error message
and the time and date of the error.
</p>