Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Changing the first word to uppercase

by takshaka (Friar)
on Feb 14, 2008 at 17:57 UTC ( [id://667985]=note: print w/replies, xml ) Need Help??


in reply to Changing the first word to uppercase

I must be missing something. Why all the regexes?

perl -pe "$_=ucfirst" infile > outfile

Update: Ah, first word, not first letter. Time for another five-year hiatus, I guess, as my reading comprehension has atrophied.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://667985]
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-24 22:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found