且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在Perl中将每个单词的首字母大写?

更新时间:2023-02-14 19:05:01

请参见常见问题解答

我不相信 ucfirst()可以满足OP的问题,以便将其中每个单词的首字母大写一个字符串,而不拆分该字符串,以后再将其加入。

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.