Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: string manipulation

by Not_a_Number (Parson)
on May 18, 2013 at 19:19 UTC ( #1034136=note: print w/ replies, xml ) Need Help??


in reply to string manipulation

print join ', ', map length, split /1+/, $string;

Update: Beaten to it by hdb and choroba. Should have re-checked existing replies before posting. Mea culpa.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (9)
As of 2016-07-28 13:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What is your favorite alternate name for a (specific) keyboard key?


















    Results (255 votes). Check out past polls.