Mercurial > repo
comparison bin/toroman @ 11600:333877d7fe85 draft
<oerjan> sled bin/toroman//s,.XLCDM,DM/XLCDMEE,
author | HackEso <hackeso@esolangs.org> |
---|---|
date | Tue, 21 Aug 2018 11:00:34 +0000 |
parents | 56dcce63901b |
children | 8c3202ff77ef |
comparison
equal
deleted
inserted
replaced
11599:91249ac5d2fb | 11600:333877d7fe85 |
---|---|
1 #!/usr/bin/perl | 1 #!/usr/bin/perl |
2 sub k{my$t;$t=~y/IVXLC/XLCDM/,$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];print k,$/ |