CGI Programming

A series of three articles about CGI programming that I wrote for Linux Format in 2001.

A series of three articles about CGI programming that I wrote for Linux Format in 2001.

Please note that these tutorials are only left here for historical interest. If you are writing new web applications with Perl these days, you should be considering something based on PSGI and Plack or even something using raw PSGI.

  • CGI Programming Part 1
    In this series of tutorials we'll look at how to write CGI programs. This first tutorial looks at the basics of CGI programming.
  • CGI Programming Part 2
    In this series of tutorials we'll look at how to write CGI programs. The second tutorial in the series looks at some of the security issues in CGI programming.
  • CGI Programming Part 3
    In this series of tutorials we'll look at how to write CGI programs. The third tutorial in the series looks at some more advanced topics in CGI programming.

2 replies on “CGI Programming”

[…] Perl is big in the world of server technology: Alongside the C language, Perl is most often used in Common Gateway Interface (CGI) scripting. CGI scripts are programs written specifically for web servers, allowing them to do more than just read a request and send a file back to the browser. All HTTP web servers have directories that contain a website’s files. For example, when you type in a URL with a “/index.html” at the end of it, the server sends back the file marked “.index.html.” But with CGI scripts, when a server receives a request for something more dynamic than just a pre-written page, it actually executes the request via the CGI script and returns the output to the browser. In essence, CGI scripts make servers more than file directories—they’re adaptable, smart file processors. To learn more, here’s a 3-part tutorial on CGI programming with Perl. […]

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.