Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Splitting each word in a string

by busunsl (Vicar)
on Jun 26, 2001 at 14:40 UTC ( [id://91546]=note: print w/replies, xml ) Need Help??


in reply to Splitting each word in a string

Split takes a regex as delimiter, so you can use:
my @words = split /\s+/, $string;

Log In?
Username:
Password:

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

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

    No recent polls found