![]() |
|
Perl Monk, Perl Meditation | |
PerlMonks |
Re: Capitalize the first letter of each wordby davidrw (Prior) |
on Jul 11, 2005 at 16:54 UTC ( #474015=note: print w/replies, xml ) | Need Help?? |
Are you trying w/regular expression approach or other?
For non-re, lookup split, map, lc, ucfirst, and join in perldoc perlfunc. For re, you can a word boundry \b (see perldoc perlre) followed by a lower case letter and then uc it (look at the /e modifier). Update: sauveant beat me to the search for the recent thread
In Section
Seekers of Perl Wisdom
|
|