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: How do you open a file for output in Perl?
2: What is a delimiter?

Exercises

1: Write a program that searches the guests database and prints the results of the search. You should use the same while loop that was used in the last sample program in this hour, and use the bind operator to search the lines and then print the ones that match.
2: Write a CGI application that creates a flat-file database of your own. Flat-file databases are simple, but they are powerful enough for many data storage tasks.

Quiz Answers

A1: Using the output ...

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.