Mercurial > repo
annotate bin/toroman @ 12500:e48c08805365 draft default tip
<b_jonas> ` learn \'The password of the month is Cthulhuquagdonic Mothraquagdonic Narwhalicorn.\' # https://logs.esolangs.org/libera-esolangs/2024-04.html#lKE Infinite craft
author | HackEso <hackeso@esolangs.org> |
---|---|
date | Wed, 01 May 2024 06:39:10 +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,$/ |