Exercises

  1. Create a web-based to-do list which allows the user to insert, delete, and check off items to do. (You can do a Tk version instead if you want to.)

  2. Write a Perl script that creates a report listing the top 10 disk space users. (Parsing the output of the Linux/UNIX du command is the easiest way of doing this.)

    Add an exclude list to the program so you can exclude special users.

  3. Create a program that reads the output of compilations and prints not only the error message, but also the line of the source file containing the error.

  4. Write a Perl script to find all backup files that have not been modified in the last three days and move them to a recycle bin. (Linux/UNIX users can make up your own directory for this bin.)

    Have the script remove ...

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.