capitalize words

sub wordcaps {
my $line = shift;
$line =~ s/(w)/U$1/g;
return $line;
}

source

Leave a Reply