misantrop has asked for the wisdom of the Perl Monks concerning the following question:

I have FreeBSD box with Apache and most of p5 ports for CGI installed. I trying to use CGI::Carp qw /fatalsToBrowaser/ but don't have any output to Browser except stanadard "Internal Server Error". What's wrong? When i run this script on Win with Active State all works fine. I'am not expert so please tell me what can i do?
  • Comment on CGI::Carp qw/fatalsToBrowser/ is not working.

Replies are listed 'Best First'.
Re: CGI::Carp qw/fatalsToBrowser/ is not working.
by JamesNC (Chaplain) on Jun 23, 2003 at 11:47 UTC
    This usually either a problem with Permissions or in your scripts top-line #!/perl/bin/perl doesn't point to the correct path for Perl. If that line is correct, you need to make sure you have Apache configured correctly. Here is a link that may help you troubleshoot this. CGI/Perl Internal Applications Error We all make this goof when we are working cross platforms (Win32 with IIS doesn't care about the first line and doesn't complain about not being able to find Perl when using IIS, you don't even have to put the line in there!) This is why you probably never see the Carp... it Carped out before it go to Carp (Bad Humor, I know)
(jeffa) Re: CGI::Carp qw/fatalsToBrowser/ is not working.
by jeffa (Bishop) on Jun 23, 2003 at 13:32 UTC
      Oh thanks! I have replaced Carp.pm with old CGI::Carp 1.23. All works now.
Re: CGI::Carp qw/fatalsToBrowser/ is not working.
by PodMaster (Abbot) on Jun 23, 2003 at 10:37 UTC