Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: searching data lines between keywords

by Tomtom (Scribe)
on Jun 14, 2005 at 10:13 UTC ( [id://466455]=note: print w/replies, xml ) Need Help??


in reply to searching data lines between keywords

You could take a look at the grep function too.
my @filtered = grep { !m/(?:mykeyword|\*\*\*END\*\*\*)/ } <DATA>; print @filtered; __DATA__ mykeyword1 <several data lines> ***END*** mykeyword2 <several lines> ***END*** mykeyword3 <several lines> ***END*** mykeyword4 <again several lines> ***END***

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (7)
As of 2024-04-24 10:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found