Glenn Booth wrote:
> I need to sort out the cases of the text fields (BOOK TITLE)
> and ( a book about cats ) and render them to "Title Case" (first
> character upper case for each word).
> Anyone have an elegant way?

ucfirst() does what you want:

echo "hello world" | perl -ne 'print join " ", map (ucfirst , split)'

-- 
[EMAIL PROTECTED] [pgp: 8A8FA6DE]


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to