Perl and CGI Scripting

Learn the Perl programming language and discover how to write CGI scripts such as form mailers, guestbooks and dynamic content scripts.

Articles in Perl and CGI Scripting

Data Types in Perl - Beginner Tutorial 3 September 2005

Perl allows you to store your data in variables in a variety of ways. This tutorial looks at Perl's common data types: scalars, arrays and hashes.

Controlling Program Flow - Intermediate Tutorial 27 January 2005

Learn how to alter the flow of your Perl code using decisions and loops. This essential tutorial covers statements such as if, while, until, do, for and foreach.

Working with Files - Intermediate Tutorial 7 July 2003

This tutorial shows you how to create files and write to them, how to read them, how to delete them, and how to scan directories on your server. It also covers permissions and full paths, and includes a handy script for working out full paths. It also touches on loops, lists, and appending strings to variables. A lengthy tutorial but well worth reading!

Form Validation with Perl and CGI - Intermediate Tutorial 12 June 2003

The most reliable way to make sure your users haven't filled in your forms wrongly is to use server-side form validation. This tutorial shows how you can do this with Perl and the CGI, and introduces the concept of subroutines along the way.

Troubleshooting CGI Scripts - Intermediate Tutorial 14 May 2003

We've all seen CGI scripts cough up the dreaded "Internal Server Error" message occasionally! What does this error mean, and how can you find the cause of the problem? This tutorial explains some CGI troubleshooting techniques.

Writing a Simple Form Mailer - Intermediate Tutorial 11 March 2003

This tutorial will show you how to build a simple form mailer script, so that visitors can send you emails from your site. Along the way we explain some new Perl concepts, including the CGI library module.

Your First CGI Script - Beginner Tutorial 3 March 2003

Learn how to write a simple CGI script, then upload it to your server and test it, with this easy-to-follow tutorial.

Introduction to Perl and the CGI - Beginner Tutorial 13 February 2003

What kind of language is Perl, and what is the CGI? How do you write a "CGI script"? These questions, and more, are answered in this introduction!


Follow Elated