Before You Start

To write CGI scripts in Perl, you'll need three things:

  • A Web server that supports Perl and an understanding of how to install CGI scripts on that server

  • The CGI.pm module, which should have come with your Perl distribution (more about this later)

  • A basic understanding of HTML

Note

You don't specifically need the CGI.pm module to write CGI scripts in Perl. There are other utility scripts to help you do CGI, or you could hand-write all of the underlying code yourself. But that would mean a lot of work for you, and it's much, much easier just to use CGI.pm. Everyone else is doing it; why not join us?

Because of the wide variety of Web servers for different platforms and the differences between them, the space isn't available to ...

Get Sams Teach Yourself Perl in 21 Days, Second 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.