Home

1Getting Started with Perl
2Getting Started with CGI
3Operators
4Flow Control
5Working with Scalars
6Working with Lists
7Working with Hashes
8Reading, Writing and Manipulating Files
9Pattern Matching
10Creating and Using Subroutines
11References
12Packaging and Modules
13Using the CGI.pm Module
14Retrieving Data with CGI
15CGI Script Debugging and Security

CGI Programming with Perl


CGI Programming with Perl was an introductory course to Perl and its use as a CGI programming language. CGI (Common Gateway Interface) is an internet protocol for passing information back and forth between a server and client. As a server-based, scripting language, Perl is universally available and ideal for many CGI tasks.

The first thing I did was download Perl 5.004 and install it on my Win9x system. The installation was straightforward. I then added the installation binary path (E:\PERL\BIN) to my PATH environment variable in the C:\AUTOEXEC.BAT file. Now I can write Perl code using my DOS editor in a DOS command window. I can test the code from any subdirectory at the DOS command prompt.

The first line of a Perl interpreted program is supposed to be "!# /usr/bin/perl" or the location of the Perl executable. This is unnecessary when running Perl interpreted programs in a DOS command window. It doesn't seem to make any difference. If the Perl program is going to be installed on a UNIX server, include the line and let DOS ignore it.

 


fatpat Software · PO Box 1785 · Charlottesville, VA 22902 · (804) 977-1652