CGI.pm, a Perl5 module (by Lincoln Stein) used to write CGI scripts, is documented in Ch. 19 of Learning Perl (second edition). See the CGI.pm man page for details: |
% man CGI # read CGI man page |
CGI.pm is compatible with the Perl4 library cgi-lib.pl: |
require "cgi-lib.pl"; |
&ReadParse; # initialize global hash %in |
print "The value of 'foo' is $in{foo}.\n"; |
is equivalent to |
use CGI qw(:cgi-lib); |
&ReadParse; # initialize global hash %in |
print "The value of 'foo' is $in{foo}.\n"; |
Other cgi-lib.pl functions available in CGI.pm: |
PrintHeader() HtmlTop() HtmlBot() |
SplitParam() MethGet() MethPost() |