Exercises

  • 1. Write a program that displays a single button labeled “Don’t push me.” When the user clicks it, change the label to read “Don’t push me again.” (In memory of Douglas Adams and The Hitchhiker’s Guide to the Galaxy.)

  • 2. Write a command that takes as its single argument a message and displays a pop-up window containing the message. This sort of command is useful for scripts that want to display a warning or error message but that have no GUI.

  • 3. Write a front end to the UNIX find command. (If you’re on Microsoft Windows, you can use the find2perl command to generate your own version of find and write a front end to it.)

  • 4. Write a program that checks the amount of free space on each of your drives and displays the result graphically. ...

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.