|
|
| more useful options | |
| PerlMonks |
Answer: What is the best way to capitalize a string? |
| ( #22640=categorized answer: print w/ replies, xml ) | Need Help?? |
|
Q&A > strings > What is the best way to capitalize a string? contributed by chromatic
Try the internal function uc. To capitalize just the first character, try ucfirst. This has the additional benefit of respecting any locale you have set.
|
|
||||||||||||||||||