Basic HTML version of Foils prepared Sept 20 97

Foil 76 What is CGI.pm?

From Tutorial on PERL Computational Science for Information Age Course CPS616 -- Sept 20 97. by Geoffrey C. Fox,Nancy McCracken,Tom Scavo


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()



© Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Sun Sep 21 1997