Search code examples
perlcapitalizetitle-case

How can I capitalize the first letter of each word in a string in Perl?


What is the easiest way to capitalize the first letter in each word of a string?


Solution

  • See the faq.

    I don't believe ucfirst() satisfies the OP's question to capitalize the first letter of each word in a string without splitting the string and joining it later.