Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Foreach Loop in Data Scraping

by jwkrahn (Monsignor)
on Jun 19, 2012 at 17:21 UTC ( #977127=note: print w/replies, xml ) Need Help??


in reply to Foreach Loop in Data Scraping

You need to use a while loop, like this:

while ( $string =~ /(SUMMARY.+?DESCRIPTION)/ig ) { print "Summary: $1\n"; ## prints title of event }

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://977127]
help
Chatterbox?
[karlgoethebier]: Lady_Aleena: "Studying the sources is the way to go" (Dr Wisenheimer) ;-)
[Lady_Aleena]: karlgoethebier, when I don't know what I am looking at, it makes it hard to figure things out.

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (5)
As of 2017-06-26 09:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (575 votes). Check out past polls.