in reply to Getting error messages from IIS with PerlScript
you may want to see the CGI::Carp's carpout function.
/J\