Don't Skip This Section

You're almost ready to write a CGI program. Almost. You need to check a few things first; otherwise, your first experience writing CGI programs will not be a happy one. It's much easier to check things before you write, rather than while you're debugging.

To use CGI, you need a web server. A common problem that new CGI programmers have is that they try writing CGI programs without having a web server properly installed. For obtaining a web server, you have a couple options: You can rent space on a commercial web server, or you can run your own. The decision is up to you, based on what you would like to pay, your bandwidth requirements, and how technically adept you are.

To obtain a commercial web server, surf the Web and ...

Get SAMS Teach Yourself Perl in 24 Hours THIRD EDITION now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.