This section describes functions provided in the CGI library, cgi-bin.pl. It also provides a tutorial example on how to use the ReadParse() to parse Web form input values and other functions.
If you look at the source code of cgi-bin.pl, you will see that it offers the following functions:
ReadParse(*in) - Parses form input values submitted by the GET or POST method and store them
in the associative array %in as name-value pairs.
PrintHeader - Returns the HTTP response header line.
PrintTop($title) - Returns the top portion of the HTML document with the given title string.
PrintBot - Returns the bottom portion of the HTML document.
PrintVariables(*in); - Returns name-value pairs stored in the associative array %in formatted with HTML tags.
Here is a tutorial example on how to use functions provided in cgi-bin.pl: