view bin/toroman @ 5131:96373b259c9e

<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}print k((shift=~/(\\w+)/)[0]),$/\' > bin/toroman && chmod a+x bin/toroman
author HackBot
date Fri, 14 Nov 2014 21:30:18 +0000
parents
children be29daf5dafa
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;$r{$t}=$_;$t}print k((shift=~/(\w+)/)[0]),$/