Home > Articles

  • Print
  • + Share This
This chapter is from the book

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. What does the letter d at the beginning of a UNIX file permission string indicate?

  2. When you run Perl at the command line, what do the c and w flags do?

  3. True or false: You can simulate both the GET and POST methods when you run CGI programs from the command line.

  4. How do you simulate passing name and value pairs to a program that uses CGI.pm when running it from the command line?

Exercises

  1. Find out where the error log is located on your Web server. Check out the contents of the file to see what kinds of errors are being recorded there.

  2. Go to one of the popular CGI program download sites, and download a few applications that look interesting. Try to get them up and running on your local server.

Quiz Answers

  1. A d at the beginning of a set of UNIX file permissions indicates that the file in question is a directory, not a normal file.

  2. The c flag indicates that the file should be compiled but not executed—it's for testing to make sure your script compiles properly.

  3. True.

  4. There are a number of ways that you can pass values into a CGI program from the command line. One option is including them as command-line arguments; another is to put them in a file and pass it to the script using standard input.

  • + Share This
  • 🔖 Save To Your Account