view lib/kps/derle.pl @ 12276:1eb8be58440e draft

<kspalaiologos> `` chmod -R +x /hackenv/lib/kps/
author HackEso <hackeso@esolangs.org>
date Tue, 31 Dec 2019 18:27:52 +0000
parents 3c04e9ef7a3a
children
line wrap: on
line source

#!/usr/bin/perl -p

my ($style) = @ARGV;

s/\d+(.)/$1x$&/ge if $style eq "postfix" or $style == undef;
s/(.)\d+/$1x$&/ge if $style eq "prefix";