Daily Archives: December 15, 2009

Perl Version of PHP's "ucwords" Function

my $string = ‘this is a string of text’; $string =~ s/\b(\w+)\b/ucfirst($1)/ge; print “$string\n”;

1 Comment