Exercises

  1. Create a script that prints out the current status of the system. What’s in the report is left to your imagination, but some items it could include are the current date, the amount of disk space free on each file system, how long the system has been up, and so on.

  2. Write a CGI script for debugging. This script prints out the values of all the form data and environment variables supplied to the script.

  3. Write a form that allows a user to register his product. It should take as input the name, address, and phone number of the user and store it so that it can be used later by the marketing department for a mailing list.

  4. One problem that plagues system administrators is the number of users who ask to have a file restored. Create a CGI system ...

Get Perl for C Programmers 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.