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

Re: Split words

by jwkrahn (Monsignor)
on Jul 11, 2012 at 14:54 UTC ( #981142=note: print w/replies, xml ) Need Help??


in reply to Split words

$ echo "perl monks wisdom monks perl wisdom" | perl -lne'print for split /\s*(monks)\s*/' perl monks wisdom monks perl wisdom

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://981142]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (11)
As of 2017-02-22 11:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (327 votes). Check out past polls.