Workshop

The quiz questions are designed to strengthen the knowledge you gain each hour. The exercises help you build on that knowledge by providing you with the opportunity to apply it to real problems.

Quiz

1: Which method in CGI.pm is used to generate the <form> tag that begins forms?
2: Which subroutine in cgi-lib.pl is used to import form variables into a CGI program?
3: True or false: cgi-lib.pl supports cookies.

Exercises

1: Check out the documentation for CGI.pm, and create a document that produces all the HTML tags using methods from CGI.pm.
2: Search CPAN for a module that will perform a task that you would ordinarily write code to perform yourself. Download and install that module.

Quiz Answers

A1: The form() method in CGI.pm is ...

Get Sams Teach Yourself CGI in 24 Hours, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.