in reply to why am i getting script error 500

There could be a lot of things wrong with your script.

However as the server responds with a "500 server error" and you do not see the error message itself, notwitstanding the use CGI::Carp qw(fatalsToBrowser);, it looks as if CGI:/Carp is not installed on this server. This is very strange since CGI:/Carp is a core-module since Perl 5.04. So either the server has a broken Perl distribution; or has a pre-5.04 Perl running; or the cause is something entirely different. Probably the latter ...

Do other of your Perl-scripts run on the server without a problem? Did you try a very simple "Hello World" type of program to see if that works? If not, perhaps you are simply not allowed to run CGI-scripts at all?

CountZero

A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

Replies are listed 'Best First'.
Re^2: why am i getting script error 500
by ketaki (Acolyte) on Jun 22, 2008 at 07:19 UTC
    sorry for not being clear. actually the page local.cgi shows up the page initially. cgi is working since a hello world program runs fine when viewed on the web. The script 500 error shows up when i hit the go button( submit button in a form on the local.cgi page) the form goes to the local.cgi page itself on submition, since i have specified form action as "". why is this error coming?
      What happens when you fill in the action attribute with an absolute URI rather than leaving it blank?

      CountZero

      A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

        hey... thanx ... i replaced the blank in action to the url and it works now.... but 1 strange thing is happening now after this change... it is not displaying the contents of frame.txt any more. why so? thanx, ketaki