Beefy Boxes and Bandwidth Generously Provided by pair Networks Bob
We don't bite newbies here... much
 
PerlMonks  

Re^2: pick a word contaning reg-ex

by Lotus1 (Hermit)
on Dec 04, 2012 at 19:54 UTC ( #1007148=note: print w/ replies, xml ) Need Help??


in reply to Re: pick a word contaning reg-ex
in thread pick a word contaning reg-ex

#!/perl use warnings; use strict; while(<DATA>){ print map {"$_\n"} grep{/!/ and /[^!]/} split; } __DATA__ Mary had a little lamb! , whose fleece! was white! as snow. And everywhere! that Mary went, the lamb was sure! to go. oops!eedaisy ! ! !! HI!!IH


Comment on Re^2: pick a word contaning reg-ex
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2014-04-21 11:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (493 votes), past polls