Mercurial > repo
annotate bin/toroman @ 12050:b7f87df8bcc5 draft
<fizzie> le//rn source//Sources for HackEso can be found at https://github.com/fis/hackbot + https://github.com/fis/multibot + https://github.com/fis/umlbox .
author | HackEso <hackeso@esolangs.org> |
---|---|
date | Sat, 16 Nov 2019 10:29:45 +0000 |
parents | 359ed0766a70 |
children |
rev | line source |
---|---|
5643 | 1 #!/usr/bin/perl |
11609
359ed0766a70
<oerjan> sled bin/toroman//s,g;,g;$t=~s/.*E.*/Number too large/;,
HackEso <hackeso@esolangs.org>
parents:
11608
diff
changeset
|
2 sub k{my$t;$t=~y/IVXLCDM/XLCDMEE/,$t.=("",I,II,III,IV,V,VI,VII,VIII,IX)[$_]for/./g;$t=~s/.*E.*/Number too large/;$t}$_=(shift=~/(\w+)/)[0];print k,$/ |