I think I'm in the "if you see an easier way" camp.

You seem to be working too hard. An RSS feed isn't designed to be over-written completely every time you update it. That's why items have a GUID. Just add your new items, and leave the old ones there too, for as long as you want.

Obviously the file will get too big if you leave them there for weeks, but you seem to be addressing the wrong problem -- "a certain RSS reader has a certain lookup rate and I need to match that" -- RSS is designed for agents to come and look at the feed whenever it suits them, and to figure out what's new for themselves, based on pubDates and GUIDs.



Nobody says perl looks like line-noise any more
kids today don't know what line-noise IS ...

In reply to Re: Extracting elements from an XML chunk leads to crash by Cody Pendant
in thread Extracting elements from an XML chunk leads to crash by Hue-Bond

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.