• Howdy! Welcome to our community of more than 130.000 members devoted to web hosting. This is a great place to get special offers from web hosts and post your own requests or ads. To start posting sign up here. Cheers! /Peo, FreeWebSpace.net
managed wordpress hosting

PERL Help

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@magnoliakarate.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.
 
Well, for starters, there are a large number of semi-colons missing in the html sections, which are a bit of a bitch to find when you use print statements all the way thru...one way to simplify the file would be to use this method for the html sections:

Code:
  print "Content-type: text/html\n\n";

  print <<"(END OF HTML)";
  <html>
    <head>
      <title>Page Title</title>
    </head>
    <body bgcolor="#FFFFFF">
    <!-- Stuff goes here -->
    </body>
  </html>
  
(END OF HTML)

If you do that, you can simply put the html in as if its not in a perl script, without having to worry about semi-colons or quotes. Just make sure the end marker (END OF HTML) in this case, is NOT indented, or your script will fail.

Aside from the print statements, I can't diagnose any other errors, since I don't have the cgi-lib.pl script that's required for the script to run properly.
 
If you have shell access, run the script from the terminal under debug mode, perl -d scriptname.pl

Press n and enter to go to the next executed line.
 
Back
Top