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

Re: Find First character of each word in a string

by phenom (Chaplain)
on Nov 24, 2010 at 16:28 UTC ( #873494=note: print w/ replies, xml ) Need Help??


in reply to Find First character of each word in a string

Another one liner way:

perl -e 'print uc substr( $_, 0, 1 ) for split(/\s+/, shift())' "Inter +nal Computing Department"


Comment on Re: Find First character of each word in a string
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2015-07-04 02:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (57 votes), past polls