Transform
"Red Green Blue" into
"R*d Green Blue" by replacing
/e/ with
"*"
perl $text =~s/e/*/;
$text = "Red Green Blue";
$text =~s/e/*/;
print "$text\n";
Submit a new solution for
perl
There are 14 other solutions in
additional languages (
clojure,
cpp,
erlang,
fantom ...)