Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

How can I output Roman numerals?

by faq_monk (Initiate)
on Oct 08, 1999 at 00:20 UTC ( #583=perlfaq nodetype: print w/replies, xml ) Need Help??

Current Perl documentation can be found at perldoc.perl.org.

Here is our local, out-dated (pre-5.6) version:

Get the http://www.perl.com/CPAN/modules/by-module/Roman module.

Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
[Corion]: And yes, at least the basic implementation is to strip off some prepositions ("the", "a", "an") from the term with regular expressions and then do a regex match ;-)
[Corion]: So that could become a fun series of articles that implement this with regular expressions, Parse::Eyapp, Marpa, YACC, Perl6 and Regexp::Grammar and whatnot. If I have a test suite, I could even do benchmarks.
[Corion]: I guess part of the fun will be to add all those optional prepositions etc. to the grammar, whereas that is easy with regular expressions :)

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (7)
As of 2017-08-17 11:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Who is your favorite scientist and why?



























    Results (286 votes). Check out past polls.

    Notices?