[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [cobalt-users] Debugging perl (about the thread "Server Hacked?")



At 23:41 17/02/2000 -0500, you wrote:
>> reason to give telnet access to the users, so: Is there any way to get the
>> errors of the perl script on the browser? Maybe using #!/usr/bin/perl

>You could put:
>use CGI::Carp qw(fatalsToBrowser);
>after #!/usr/bin/perl

Nop.. I still get an "internal server error".. The description of the error
appears before de "content-type" line. And the stuff that is supposed to
get to the browser is not very descriptive either.. "Execution of
./script.pl aborted due to compilation errors."
The correct error message would be 

Can't modify constant item in postincrement at ./script.pl line 4, near "i++"

(I forgot the $ before the i). That would be descriptive, that's what I
want to get on the borwser..

>I'm running included scripts on .shtml files with:
><!--#include virtual="/cgi-bin/countdown.pl"-->

I know.. but if the script doesn't run, you get "[an error occurred while
processing this directive]", wich is not very descriptive either..

Thanks.. bye..

Ariel.