This is an old thread, but the same problem..
I need any input of any length returned as first-letter-of-the-word-capitalized. As This Is...
I agree the idea to make all lowercase first is ideal!
but, what is the $data =~ tr/A-Z/a-z/; doing?
ans in the following...$data =~ s/\b(\w)/\U$1/g;
could you just treat me to an explanation as I'm a tad confused now.
Also, when the g or i or m is used, which way is it?
quotations? not? If there is a replace() function , then the g,m, or i goes out of the parens, or inside it?
Yes, I am reading tons of examples and getting crazy!