CGI SCRIPTING 2.IV.2002, nh * to make a HTML page, say: print < returns a list of all the fields that were in the HTML form this CGI script at hand is responding to param("key") -------------> returns value of that key ---------|-------- header() | returns the string | Content-type: text/html | followed by a blank line ---------|-------- start_html(string) | returns string as an HTML ---------|-------- h1(string) | returns string as inside <h1> tags ---------|-------- p(string) | returns string as inside <p> tags ---------|-------- end_html(string) | returns closing tags ---------|-------- hr | generates <hr> 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!