There's more than one way to do things | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
The xml in the feed is spread over several lines, but you're reading only one at a time. No one line matches all your regex. Try setting local $/ = '</item>'; before reading. The alternative is to forget the intermediate file, rely on the linebreaks, and do global matching a la, That is pretty fragile, however. I suspect you're doing this as a favor and it seems odd that you have to rewrite the good xml modules to do it. LWP::Simple is just as optional as the XML modules, which you should be able to use. There is even one for rss. After Compline, In reply to Re: Writing a simple RSS aggregator.
by Zaxo
|
|