Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Capitalize the first letter of each word

by gam3 (Curate)
on Jul 11, 2005 at 17:17 UTC ( [id://474023]=note: print w/replies, xml ) Need Help??


in reply to Capitalize the first letter of each word

As I am not feeling pedantic today. Here is an answer.
print(join' ', map({ ucfirst() } split /\s/, "to say it once"), "\n");
-- gam3
A picture is worth a thousand words, but takes 200K.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (3)
As of 2024-04-26 00:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found