且构网

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

如何在 Perl 中将字符串中每个单词的第一个字母大写?

更新时间:2023-02-05 14:32:28

参见 常见问题.

我不相信 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.