A Real Module: Roman.pm

This section presents the details on an actual module, Roman.pm, that you can download. See later in this chapter for the details on how to download this module.

To demonstrate the similarities between the Complex module and an actual module such as Roman.pm, we first demonstrate the use of this module.

Using Roman.pm

Roman.pm has methods to convert from roman numerals to arabic and from arabic to roman numerals. We present a small program that asks the user for a roman numeral. After verifying it, it is converted to arabic. Next, the arabic is doubled and then converted to roman numerals. We doubt that you will be using this module often, but it is worth studying because its simplicity makes it easier to understand the ...

Get Programming PERL in the .NET Environment 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.