Mercurial > repo
comparison bin/toroman @ 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 |
comparison
equal
deleted
inserted
replaced
11602:20868e1dad42 | 11603:c0c2dcec003e |
---|---|
1 #!/usr/bin/perl | 1 #!/usr/bin/perl |
2 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,$/ | 2 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,$/ |