MiriamH has asked for the wisdom of the Perl Monks concerning the following question:
I think this might be a basic issue, but I don't know what to do.
I have a massive list of data that summarizes different events at my university. I need to print out all the titles of the events. The data is structured in that it says "summary" and gives title and then "description" immediately after. This happens at least 50x. I have a script that will print out the title, but only for the FIRST time it seems "summary" and "description". How do I make it continue through the data?
if($string=~m/.+?(SUMMARY.+?DESCRIPTION).+?$/i){ print 'Summary: ',$1,$/; ## prints title of event }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Foreach Loop in Data Scraping
by davido (Cardinal) on Jun 19, 2012 at 17:19 UTC | |
by MiriamH (Novice) on Jun 19, 2012 at 17:51 UTC | |
|
Re: Foreach Loop in Data Scraping
by jwkrahn (Abbot) on Jun 19, 2012 at 17:21 UTC | |
|
Re: Foreach Loop in Data Scraping
by ckj (Chaplain) on Jun 20, 2012 at 07:02 UTC | |
by MiriamH (Novice) on Jun 22, 2012 at 14:10 UTC |