You can use cPanel to view the error log for your web site. Perl scripts that cause a “500 Internal Server Error” or “403 Forbidden” error message are logged in the web server's error log. Perl scripts that are run on the command line do not log errors in the web server logs. This step only applies to Perl scripts that are run as CGI scripts through a user's web browser. For more information about how to use the Perl debugger, please visit. To do this, type the following command: perl -d filename If you need even more detailed information or control over the script's execution, you can run the script in the Perl command-line debugger. When there is an error, the Perl interpreter outputs detailed information about the type of error, and often the exact line number in the script file where the error occurred. To do this, type the following the command, replacing filename with the script filename: perl filename On my test system the output from this script appears as follows: C:Perl>. You can obtain much more useful information about script errors by logging in to your SSH account and running the script from the command line. For example, if you receive an “Internal Server Error”, the root cause could be file permissions, a syntax error, or something else entirely. Trying to debug a Perl script through a web browser can be difficult. Step #3: Run the script from the command line The two formats encode line breaks differently, and script files saved in the DOS format may cause syntax errors when they are run. However, at times, scripts are so bulky, messy or complicated. Make sure the Perl script file is in UNIX text format, and not DOS format. The Perl scripting language is the designers best friend in meeting milestone targets. For more information about the correct file permissions for Perl script files, please see this article. Which file permissions you set depends on how the Perl script file is run. Make sure that the Perl script file has the correct permissions set. About Perl Perl (Practical Extraction and Report Language) is especially desined for text processing by Larry Wall. When you have a Perl script that is not functioning correctly, you can follow these troubleshooting steps: Step #1: Verify file permissions Step #3: Run the script from the command line.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |