annotate bin/toroman @ 12267:7e5beba54694 draft

<b_jonas> slashlearn aoc//Advent of Code (AoC) is a series of programming puzzles that some regulars enjoy, found at "https://adventofcode.com/2019/about".
author HackEso <hackeso@esolangs.org>
date Mon, 16 Dec 2019 22:53:41 +0000
parents 359ed0766a70
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
5643
56dcce63901b <tswett> revert
HackBot
parents:
diff changeset
1 #!/usr/bin/perl
11609
359ed0766a70 <oerjan> sled bin/toroman//s,g;,g;$t=~s/.*E.*/Number too large/;,
HackEso <hackeso@esolangs.org>
parents: 11608
diff changeset
2 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,$/