What is the easiest way to capitalize the first letter in each word of a string?
$string =~ s/(\w+)/\u$1/g;
should work just fine