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.

David Gerler
Gerler Enterprises
PO Box 16357
Chesapeake VA 23328
(757) 410-0738
http://www.GerlerEnterprises.com/

Web Hosting from $5.95 per month
http://www.easysitesforless.com/

$9.95 /mo. Internet Access
http://www.DataDaves.net/



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to