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 =~ to do pattern matching; in Perl 6 please use ~~ at line 2, near " s/\\b(\\w+)"
stdout
Standard output is empty