Oct 23, 2012, 2:01 PM
The trace output goes to stderr by default, not stdout. You need to redirect it to the browser or to a file.
Re: [MDTech.us_MAN] Need help writing a script that interacts with a MySQL DB
To redirect it to the browser you need to do this:
Then after outputting the html header, add this:
use CGI::Carp qw(fatalsToBrowser warningsToBrowser);
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.
(This post was edited by FishMonger on Oct 23, 2012, 2:03 PM)