Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^2: how to split string(many words in one line) in a word?

by LanceDeeply (Chaplain)
on Oct 07, 2005 at 01:57 UTC ( [id://498105]=note: print w/replies, xml ) Need Help??


in reply to Re: how to split string(many words in one line) in a word?
in thread how to split string(many words in one line) in a word?

tmtowtdhw :)
my $string = "The quick brown (it's a slightly reddish brown) fox jump +s over the lazy dog"; my $words = join '', map { ( / / ) ? "\n" : $_ ; } split '', $string ; print "$words" ;

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (1)
As of 2024-04-25 04:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found