Fixing an HTTP 500 Error with Perl Scripts

Article translated by machine

This text is a machine translation. A revised version is planned.

If you receive the error message HTTP Error 500 (Internal Server Error) when you call your script, make sure that your program has the following points:

  • Please set the execution rights for users (705 or 755).
  • The first line in the script is always #!/usr/bin/perl.
  • Always insert a backslash (\) before the @ sign (e.g. in email addresses) (unless the @ sign is in a string with single quotation marks). This is necessary because the @ character in Perl is reserved for the names of arrays.