perldoc -q capitalize /R
"David Gerler" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, > I have a line of text that is all uppercase and I need to change it > to titlecase. i.e. "THIS IS THE LINE" needs to become "This Is The > Line". I can make it all lower case using tr///. I have researched in > my books and found that and the \u to for making the next character > titlecase but can't seem to make it work the way I want it too. > > This is what I tried: > $title =~ tr/A-Z/a-z/; > $title =~ s/(\W)/\u$1/; > > As I said, this will make the whole statement lowercase but won't > capitalize the first letter. Any help will be appreciated. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]