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
What does the letter d at the beginning of a UNIX file permission string indicate?
When you run Perl at the command line, what do the c and w flags do?
True or false: You can simulate both the GET and POST methods when you run CGI programs from the command line.
How do you simulate passing name and value pairs to a program that uses CGI.pm when running it from the command line?
Exercises
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.
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
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.
The c flag indicates that the file should be compiled but not executedit's for testing to make sure your script compiles properly.
True.
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.