CGI and Perl

Home » CGI and Perl (73)

File Handling part 2
This tutorial is lesson number 18 on Perl teaching you about file handling, part two.

File Handling
This tutorial is lesson number 17 on Perl teaching you about file handling.

Advanced Hashes
This tutorial is lesson number 16 on Perl teaching you about retrieving hash values by key.

Subroutines part 2
This tutorial is lesson number 15 on Perl teaching you about subroutines and all data passed to subroutines in a special array are automatically stored.

Subroutines
This tutorial is lesson number 14 on Perl teaching you about subroutines, what they are and what they can do for you.

Conditional Statements part 3
This tutorial is lesson number 13 on Perl teaching you about conditional statements and on using do loops.

Conditional Statements part 2
This tutorial is lesson number 12 on Perl teaching you about adding multiple conditions to an "if" statement.

Advanced Array Handling 2
This tutorial is lesson number 10 on Perl teaching you about combining the data from two arrays.

Advanced Array Handling
This tutorial is lesson number 9 on Perl teaching you about splitting a scalar into an array.

Advanced Scalar Handling
This tutorial is lesson number 8 on Perl teaching you about advanced scalar handling.

Conditional Statements
This tutorial is lesson number 11 on Perl teaching you about conditional statements which are used to compare different values in order to have the program make some sort of automatic decision about what to do next.

Environment Variables
This tutorial is lesson number six on Perl teaching you about environment variables which is a handy way to find out things about the current visitor, server, and any data passing between the two.

Outputting Headers And HTML The Easy Way
This tutorial is lesson number seven on Perl teaching you about outputting headers and learning HTML the easy way.

Perl Lesson 5: Reading Input
In this tutorial you will learn how to read input in your CGI program, which is not rocket science, but the code to do it is a little more complex if you are a beginner.

Perl Lesson 4: Quotation Marks
In this tutorial you will learn how Perl allows you to use single quotes which allow you to use data literally, while double quotes allow data to be interpolated, or processed.

Perl Lesson 3: Operators
In this tutorial you will learn that operators are one thing you use to manipulate data (usually numbers) however you wish. The most common ones deal with math problems.

Using Variables
A variable is where you keep your data. It can be text, numbers, or even simple True/False (Boolean) data. Whatever the case, you use variables to represent and keep track of data.

Getting Started
All Perl CGI scripts start off with whats known as a Shebang Line. The Shebang Line isn't there for the purposes of the Perl interpreter. The perl interpreter actually ignores this line. The Shebang Line is actually there just to tell the system that this is a Perl script, and that it should call the Perl interpreter in order to read it.

Controlling Program Flow
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
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!

Home » CGI and Perl (73)