in reply to Perl problems

whereever you specified perl in the #! is wrong, you might have put #!/bin/perl but it is really in /usr/local/bin. do a which perl to find out where perl is on your ISP. gabe-san

Replies are listed 'Best First'.
RE: RE: Perl problems
by Anonymous Monk on Mar 10, 2000 at 07:55 UTC
    Someone suggested changing .pl to .cgi, so I did. I then ran the script through telnet and it ran like it was supposed to. However, when I tried to use my browsers it gives me an internal error message. I have never had a case where it would run through telnet and not the browser. Any thoughts??? Thanks Scott
      There are a *lot* of reasons why it would run correctly from the command line, but not run from your browser. Did you look in your server's error log? You should have an error message in there.

      Are the permissions set correctly? They should be 0755 so that the web server can execute your script.

      Did you output a content header?

      print "Content-Type: text/html\n\n";
      Read the Idiot's Guide.