in reply to CGI::Carp failing to report errors

Without seeing the rest of the code, it's difficult to say. Also, seeing the actual error message might help. Have you looked in your error logs? A syntax error will cause your code to not compile, thus causing a 500 error and not allowing CGI::Carp to function. Also, a bad shebang line could be the problem. It's tough to narrow down without the actual error.

Cheers,
Ovid

New address of my CGI Course.

Replies are listed 'Best First'.
Re^2: CGI::Carp failing to report errors (compile-time)
by tye (Sage) on Oct 30, 2003 at 01:05 UTC
    A syntax error [...] not allowing CGI::Carp to function.

    Although there was a recent version of CGI::Carp that failed to catch compile-time errors, it is supposed to catch those and it can catch compile-time errors that occur in code after the use CGI::Carp statement.

    So make the use CGI::Carp statement the first statement before you include any other modules. It still won't be able to catch errors in the #! line and certain configuration errors (or the lack of the CGI::Carp module itself or modules it depends upon), but I'll put even money on it finding this error.

                    - tye