∟cgi-lib.pl - The Standard Library for CGI Scripts
This section describes the de facto standard library, cgi-bin.pl, for Perl CGI scripts. It also provides a tutorial on how to download and install cgi-bin.pl 2.18 to the Apache server on a Windows system.
If you want to develop Web applications with Perl, you should download and use the CGI de facto standard library,
cgi-lib.pl developed by Steven E. Brenner.
The cgi-lib.pl library makes CGI scripting in Perl easy enough for anyone to process forms
and create dynamic Web content. The library has the following features:
Extremely simple to learn and easy to use
Designed for operation under Perl5 and Perl4
Very efficient
Compatibility with all CGI interactions, including File Upload
Convenient utility functions
Compatible with Perl5 security features such as taint, warnings,
(command line options -Tw) and use strict;
Debugging facilities
Good starting point for migration to more sophisticated libraries
Here is what I did to download and install cgi-lin.pl 2.18:
1. Go to http://cgi-lib.berkeley.edu/.
2. Click the link "Version 2.18" in the "Current versions of cgi-lib available" section.
The source code of cgi-lib.pl will be displayed in the browser.
3. Click "File > Save as" from the browser menu. The Save As dialog box shows up.
4. Save the content to C:\local\apache\cgi-bin\ directory and rename it to cgi-bin.pl.
See the next section for testing the cgi-bin.pl installation.