view bin/en2sv @ 8072:90dbd630fd23

<b_jonas> `` perl -pi -e \'s/ (\\$c\\[rand\\(\\@c\\)])/($1 || "No card found.")/\' bin/random-card
author HackBot
date Mon, 16 May 2016 11:14:18 +0000
parents a046b5dfe812
children
line wrap: on
line source

#!/usr/bin/perl
use Encode; binmode *$_,"encoding(utf8)" for STDIN,STDOUT; local$/; for (split//,<STDIN>) { rand(5)<3 and y/EOeo/\xc4\xc5\xe4\xe5/; print }