Jump to content

Roman numerals/Encode: Difference between revisions

m
Fix Perl 6 -> Raku in comments
(Rename Perl 6 -> Raku, alphabetize, minor clean-up)
m (Fix Perl 6 -> Raku in comments)
Line 3,872:
=={{header|Perl}}==
==== Simple program ====
Simple, fast, produces same output as the Math::Roman module and the Perl 6Raku example, less crazy than writing a Latin program, and doesn't require experimental modules like the Perl 6Raku translation.
<lang perl>my @symbols = ( [1000, 'M'], [900, 'CM'], [500, 'D'], [400, 'CD'], [100, 'C'], [90, 'XC'], [50, 'L'], [40, 'XL'], [10, 'X'], [9, 'IX'], [5, 'V'], [4, 'IV'], [1, 'I'] );
 
10,339

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.