To check for those errors,I generally like to have the server log files right there as I debug so I can see any errors that the script produces. The server (whether IIS, Apache, or anything else) should be trapping your STOUT and STDERR and put that message in to the log files.
Apache (on *nix) logs are kept (usually) in /var/log/httpd/ or /var/log/. You can check the /etc/httpd/conf/httpd.conf, if it is not in those 2 places.
Apache (on Win) you'll have to check the httpd.conf
Win (with ISAPI) check \perl\bin\perlIS-Err.log.
If I did not list your server, you can check the docs and find out where this log files are.
grep
grep> cd pub
grep> more beer
|