M
Moritz Karbach
Hi all,
I'd like to appear all errors (syntax, file inclusion, ...) of my CGI script
in the browser. A quick googling told me to do
BEGIN
{
$|=1;
print "Content-Type: text/html; charset=ISO-8859-1\n\n";
use CGI::Carp('fatalsToBrowser');
# or use CGI::Carp qw(fatalsToBrowser warningsToBrowser);
}
The result is, that the Internal Server Error dissappears (due to the
correct header), but still no errors are sent to the browser.
Also a
BEGIN
{
use CGI::Carp qw(carpout);
print "Content-Type: text/html; charset=ISO-8859-1\n\n";
carpout(STDOUT);
}
didn't work (still error 500).
Any ideas?
- Moritz
I'd like to appear all errors (syntax, file inclusion, ...) of my CGI script
in the browser. A quick googling told me to do
BEGIN
{
$|=1;
print "Content-Type: text/html; charset=ISO-8859-1\n\n";
use CGI::Carp('fatalsToBrowser');
# or use CGI::Carp qw(fatalsToBrowser warningsToBrowser);
}
The result is, that the Internal Server Error dissappears (due to the
correct header), but still no errors are sent to the browser.
Also a
BEGIN
{
use CGI::Carp qw(carpout);
print "Content-Type: text/html; charset=ISO-8859-1\n\n";
carpout(STDOUT);
}
didn't work (still error 500).
Any ideas?
- Moritz