Exercises

  1. Write a persistent list object. This object acts just like an array except that it stores its values in a file and reloads when the program is run again. In other words, the values of the array persist even after the program is terminated.

  2. Write a package to handle Roman numerals.

  3. Write classes to support a workflow tool. The base class should provide

    • A title for this step in the workflow

    • A flag indicating whether the work has been done

    • A virtual method called do_it, which actually does the work

      There are two different types of steps: manual, which is done by an operator, and automatic, which is done by a system command. Devise derived classes to handle both these cases.

  4. Write a complex number class.

  5. Devise a base class called person and derived ...

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.