I am developing a Perl script using FastCGI (using CGI::Fast and CGI::Carp 'fatalsToBrowser').
When my script has compile errors, it causes the browser to hang. It seems that fatalsToBrowser is not working the way it does with normal CGI (just send the compile errors to the browser). How can I fix this?
I am developing a Perl script using FastCGI (using CGI::Fast and CGI::Carp ‘fatalsToBrowser’) .
Share
I’m the CGI.pm maintainer. I would recommend avoiding using ‘fatalsToBrowser’ in this case. Some Perl frameworks over features which do the same thing. For example, with CGI::Application there is CGI::Application::Plugin::DebugScreen. Other frameworks have something similar.
In other cases, the popular ‘Carp’ and ‘CGI::Carp’ modules can conflict if they both end up imported in the same name space, because they both provide functions with the same names, like ‘carp’ and ‘croak’. I recommend using Carp and avoiding CGI::Carp.