annotate 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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
5643
56dcce63901b <tswett> revert
HackBot
parents:
diff changeset
1 #!/usr/bin/perl
11600
333877d7fe85 <oerjan> sled bin/toroman//s,.XLCDM,DM/XLCDMEE,
HackEso <hackeso@esolangs.org>
parents: 5643
diff changeset
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,$/