Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
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?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (6)
As of 2017-06-29 11:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (659 votes). Check out past polls.