Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: pick a word contaning reg-ex

by 2teez (Vicar)
on Dec 04, 2012 at 13:37 UTC ( #1007092=note: print w/replies, xml ) Need Help??


in reply to pick a word contaning reg-ex

You mean something like this:

use warnings; use strict; while(<DATA>){ chomp; print grep{/.+?\!/} split } __DATA__ Mary had a little lamb! , whose fleece! was white! as snow. And everywhere! that Mary went, the lamb was sure! to go.

If you tell me, I'll forget.
If you show me, I'll remember.
if you involve me, I'll understand.
--- Author unknown to me

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1007092]
help
Chatterbox?
[usemodperl]: i even tried to run perl again from inside script with qx and the working one liner: nada

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2018-06-23 12:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?



    Results (125 votes). Check out past polls.

    Notices?