|Perl: the Markov chain saw|
Parsing multiple RSS filesby perl.j (Pilgrim)
|on Oct 23, 2013 at 20:58 UTC||Need Help??|
perl.j has asked for the
wisdom of the Perl Monks concerning the following question:
I'm trying to hack together a little tool to help me parse RSS feeds. Basically, the code I currently have takes a keyword(s) and prints the articles that have that word in the title. Here is the code:
This gives me the desired effect with one url, but I need to parse ~20 of these and print the articles from all of them.
I attempted to do this by turning $URL into an array (by making it @URL), and changed that variable throughout the code, but that just gave me several errors.
So, my question is, how can I parse multiple RSS feeds in one script and have all of the output formatted the same way into the same file?