my $string = 'this is a string of text'; $string ~~ s/\b(\w+)\b/ucfirst($1)/ge; print "$string\n";
Standard input is empty
===SORRY!=== Unsupported use of /g; in Perl 6 please use :g at line 2, near "e; \nprint "
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!