Problems? Is your data what you think it is? | |
PerlMonks |
Re: Capitalize the 1st letter of each wordby atcroft (Abbot) |
on Jan 15, 2004 at 19:56 UTC ( [id://321652]=note: print w/replies, xml ) | Need Help?? |
If you hit the Library, under Perl Functions, Alphabetical, you'll find ucfirst() and lcfirst(), which will upper- or lower-case (respectively) the first character of a given word. So you could do something along the lines of:
I suspect a regex in this case is actually overkill.... HTH....
In Section
Seekers of Perl Wisdom
|
|