⭐
in reply to
What is the best way to capitalize a string?
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.
Comment on
Re: What is the best way to capitalize a string?
In Section
Seekers of Perl Wisdom