PERL CGI Tutorial
for Writing Interactive Form Scripts
In truth you should consider this tutorial a bit outdated for the purposes of creating a website with interactive features.
If you'd like to become familiar with how we did things in the good ole days, you might want to proceed.
The NOW and the future of creating interactive websites is CMS.
Click a button to install it and VOILA!!, you've got a website with built in member registration, polling features, blogging, chat, message boards and more.
For more on CMS Click Here
In this tutorial you'll learn about writing interactive form scripts in PERL CGI. You'll find everything you need to make your website interactive.
Script Copying Instructions
For the ultra novice:
PERL CGI scripts can be copied right from the PC screen. Depress the left mouse button and drag it over the code to highlight. Right click on the highlighted text. Click Copy. Open NotePad. Right Click inside the NotePad window. Click Paste.
Contents
Getting Started in CGI
Send HTML Page to Browser
Parse HTML Form
Saving to a File
Open a File and Display Contents
Using the Split Function
Search a File
Sort a File
Display a Multi Line File in Tables
Display a Multi Line File in a Textarea
Working with Numbers
Using Sendmail
Troubleshooting Scripts
Access Log and Error Codes
Shebang Line
Setting File Permissions
