fork download
  1. my $string = 'this is a string of text';
  2. $string ~~ s/\b(\w+)\b/ucfirst($1)/ge;
  3. print "$string\n";
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
===SORRY!===
Unsupported use of /g; in Perl 6 please use :g at line 2, near "e; \nprint "
stdout
Standard output is empty