Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Answer: What is the best way to capitalize a string?

by chromatic (Archbishop)
on Jul 15, 2000 at 00:54 UTC ( #22640=categorized answer: print w/replies, xml ) Need Help??

Q&A > strings > What is the best way to capitalize a string? - Answer 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.

  • Comment on Answer: What is the best way to capitalize a string?
Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
[LanX]: posted
[1nickt]: Oops .. your WebGL implementation has crashed.

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (7)
As of 2017-11-18 15:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (277 votes). Check out past polls.

    Notices?