Mercurial > repo
annotate 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 |
rev | line source |
---|---|
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
HackBot
parents:
diff
changeset
|
1 #!/usr/bin/perl |
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
HackBot
parents:
diff
changeset
|
2 $_=<>;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(),$/ |