view bin/fromroman @ 5128:7d9cc92f0c8f

<b_jonas> echo $\'#!/usr/bin/perl\\n\'\'$_=<>;sub k{my$t;$t=~y/IVXLC/XLCDM/,$t.=("",I,II,III,IV,V,VI,VII,VIII,IX)[$_]for/./g;$$t=$_;$t}k for s""\\$"..4e3;print eval(),$/\' > bin/fromroman && chmod a+x bin/fromroman
author HackBot
date Fri, 14 Nov 2014 21:22:28 +0000
parents
children 7d19c0f4d970
line wrap: on
line source

#!/usr/bin/perl
$_=<>;sub k{my$t;$t=~y/IVXLC/XLCDM/,$t.=("",I,II,III,IV,V,VI,VII,VIII,IX)[$_]for/./g;$$t=$_;$t}k for s""\$"..4e3;print eval(),$/