Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Capitalize the 1st letter of each word

by Zaxo (Archbishop)
on Jan 15, 2004 at 20:06 UTC ( [id://321655]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    s/(\w)(\w*)/\U$1\E$2/ for @array;
  2. or download this
    my @arrayl = map {ucfirst} @array;
  3. or download this
    $_ = 'foo bar foobar barfoo 1 2 3';
    s/(\w)(\w*)/\U$1\E$2/g;
    print;
    # Foo Bar Foobar Barfoo 1 2 3
    

Log In?
Username:
Password:

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

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

    No recent polls found