my $value = "a b c d e f"; $value =~ s/\b(\S)\b/hoge/g; print $value, "\n";
Standard input is empty
hoge hoge hoge hoge hoge hoge
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!