Полезная информация

Learning Perl

Learning PerlSearch this book
Previous: 19.8 Creating a Guestbook ProgramChapter 19
CGI Programming
Next: 19.10 Perl and the Web: Beyond CGI Programming
 

19.9 Troubleshooting CGI Programs

CGI programs launched from a web server run under a fundamentally different environment than they do when invoked from the command line. While you should always verify that your CGI program runs properly from the command line,[14] this isn't enough to guarantee that your program will work when called from the web server.

[14] See the CGI.pm documentation for tips on command-line debugging.

You should get the CGI programming FAQ and a good book on CGI programming to help you in this. Some of these are listed at the end of this chapter. Here's a brief list of the frequent problems that arise in CGI programming. Almost all of them trigger those annoyingly unhelpful 500 Server Error messages that you will soon come to know and hate.


Previous: 19.8 Creating a Guestbook ProgramLearning PerlNext: 19.10 Perl and the Web: Beyond CGI Programming
19.8 Creating a Guestbook ProgramBook Index19.10 Perl and the Web: Beyond CGI Programming