Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Capitalize the first letter of each word

by tlm (Prior)
on Jul 12, 2005 at 01:03 UTC ( [id://474143]=note: print w/replies, xml ) Need Help??


in reply to Capitalize the first letter of each word

$string =~ s/(?:^|(?<=\s))(\w)/\U$1/g;

the lowliest monk

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://474143]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (3)
As of 2024-04-25 07:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found