view bin/toroman @ 12476:3ded3d281de8 draft

<wib_jonas> slashlearn ponderthis//Ponder This are monthly open-ended programming puzzle challenges that some regulars enjoy: https://research.ibm.com/haifa/ponderthis/index.shtml
author HackEso <hackeso@esolangs.org>
date Mon, 27 Feb 2023 10:56:19 +0000
parents 359ed0766a70
children
line wrap: on
line source

#!/usr/bin/perl
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,$/