Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
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 }


Comment on Re: Foreach Loop in Data Scraping
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (16)
As of 2015-07-31 13:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (278 votes), past polls