Mercurial > repo
changeset 5130:b0536f245afb
<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;$r{$t}=$_;$t}k for s""\\$"..4e3;print $r{(shift=~/(\\w+)/)[0]},$/\' > bin/fromroman && chmod a+x bin/fromroman
author | HackBot |
---|---|
date | Fri, 14 Nov 2014 21:26:51 +0000 |
parents | 7d19c0f4d970 |
children | 96373b259c9e |
files | bin/fromroman |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/bin/fromroman Fri Nov 14 21:22:56 2014 +0000 +++ b/bin/fromroman Fri Nov 14 21:26:51 2014 +0000 @@ -1,2 +1,2 @@ #!/usr/bin/perl -$_=shift;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(),$/ +sub k{my$t;$t=~y/IVXLC/XLCDM/,$t.=("",I,II,III,IV,V,VI,VII,VIII,IX)[$_]for/./g;$r{$t}=$_;$t}k for s""\$"..4e3;print $r{(shift=~/(\w+)/)[0]},$/