September 2002
Intermediate to advanced
496 pages
10h
English
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.
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 ...