Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
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 chanting in the Monastery: (10)
As of 2017-01-24 14:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (205 votes). Check out past polls.