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

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

by plaid (Chaplain)
on Jul 15, 2000 at 00:53 UTC ( #22639=categorized answer: print w/replies, xml ) Need Help??

Q&A > strings > What is the best way to capitalize a string? - Answer contributed by plaid

A couple (better?) ways come to mind:
$string = uc($string);
$string =~ tr/a-z/A-Z/;

Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
[Corion]: A good daystart to everybody!
[GrandFather]: It's a good day end here Corion. The start was somewhat less than average!

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (6)
As of 2017-08-24 07:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Who is your favorite scientist and why?



























    Results (365 votes). Check out past polls.

    Notices?