Skip to content

Instantly share code, notes, and snippets.

@Osse
Forked from smujohnson/gist:3739743
Created September 17, 2012 21:10
Show Gist options
  • Save Osse/3739813 to your computer and use it in GitHub Desktop.
Save Osse/3739813 to your computer and use it in GitHub Desktop.
use Term::ANSIColor qw(:constants);
use 5.010;
while (<STDIN>) {
my @words = split(' ');
foreach (@words) {
s/^chr/kr/;
s/c/k/g;
s/ti/sj/;
s/ity$/itet/;
s/ol$/oll/;
s/ism$/isme/;
s/onal$/onell/;
}
my $line = join ' ', @words;
say YELLOW, $line, RESET;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment