---------|--------
h1(string) | returns string as inside tags
---------|--------
p(string) | returns string as inside
tags
---------|--------
end_html(string) | returns closing tags
---------|--------
hr | generates
tag
---------|--------
textfield("key","value) | generates text field with name "key" and
| value "value"
---------|--------
import tags
------------(labels that stsand for groups of f(n)s to import)-------
:cgi | import all arg-handling methods (like param())
:form | import all fill-out form generating methods (like textfield())
:html2 | import all methods that generate HTML 2.0 standard el.s
:html3 | import all methods that generate HTML 3.0 standard el.s
:netscape | import all methods that give netscape-specific exts
:shortcuts | import all html-generating shortcuts
:standard | import "standard" features: html2, form, and cgi
:all | import all available methods
use CGI qw(:standard);
print_header(), start_html("Hello World"), h1("bonjour!");
my $favorite = param("flavor");
print p("Your favorite flavor is $favorite.");
print end_html();
_,*^*. _,*^*. _,*^*. _,*^*. _,*^*. _,*^*. _,*^*. _,*^*. _,*^*. _,*^*._
the same cgi script can generate the html code *and* process it!