Mercurial > repo
changeset 11603:c0c2dcec003e draft
<oerjan> sled bin/toroman//s,print,$_="Number too large" if /E/;print,
author | HackEso <hackeso@esolangs.org> |
---|---|
date | Tue, 21 Aug 2018 11:03:35 +0000 |
parents | 20868e1dad42 |
children | d0d89ff37e50 |
files | bin/toroman |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/bin/toroman Tue Aug 21 11:03:25 2018 +0000 +++ b/bin/toroman Tue Aug 21 11:03:35 2018 +0000 @@ -1,2 +1,2 @@ #!/usr/bin/perl -sub k{my$t;$t=~y/IVXLCDM/XLCDMEE/,$t.=("",I,II,III,IV,V,VI,VII,VIII,IX)[$_]for/./g;$t}$_=(shift=~/(\w+)/)[0];print k,$/ +sub k{my$t;$t=~y/IVXLCDM/XLCDMEE/,$t.=("",I,II,III,IV,V,VI,VII,VIII,IX)[$_]for/./g;$t}$_=(shift=~/(\w+)/)[0];$_="Number too large" if /E/;print k,$/