Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
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?
[ambrus]: TCLion: it's to make people write non-short writeups in an external editor and save it to a local file. otherwise people will complain that they had a very insightful extended reply but their browser died just when they were almost ready posting it.
[ww]: ++ambrus "their browser died just when...."
[ambrus]: ww: or they accidentally closed the window, or something. the exact excuse doesn't matter.
[ambrus]: you hear that on web forums frequently.
LanX Fermat 's famous browser
[ww]: ambrus agree; got the t-shirt, et al

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (16)
As of 2017-03-23 18:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (292 votes). Check out past polls.