Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
#!c:/perl/bin/perl.exe -wT # ensure all fatals go to browser during debugging and set-up # comment this BEGIN block out on production code for security BEGIN { $|=1; print "Content-type: text/html\n\n"; use CGI::Carp('fatalsToBrowser'); } # all the rest of the code goes here use diagnostics; use strict; my $buffer; read (STDIN, $buffer, $ENV{'CONTENT_LENGTH'}); print "Content-type: text/plain\n\n"; print $buffer;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: 500 Internal Server Error defies debugging
by ajt (Prior) on Sep 11, 2002 at 11:03 UTC | |
|
Re: 500 Internal Server Error defies debugging
by rdfield (Priest) on Sep 11, 2002 at 10:59 UTC | |
|
Re: 500 Internal Server Error defies debugging
by LTjake (Prior) on Sep 11, 2002 at 11:25 UTC | |
|
Re: 500 Internal Server Error defies debugging
by blssu (Pilgrim) on Sep 11, 2002 at 13:16 UTC | |
|
Re: 500 Internal Server Error defies debugging
by Anonymous Monk on Sep 11, 2002 at 15:41 UTC | |
|
Re: 500 Internal Server Error defies debugging
by busunsl (Vicar) on Sep 11, 2002 at 13:31 UTC | |
|
Re: 500 Internal Server Error defies debugging
by krujos (Curate) on Sep 11, 2002 at 13:36 UTC |