Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I wrote a small script to publish an rss document using XML::RSS. I used some of the code from the cpan documentation to write my script. It works great except this one little problem I am having.
When my xml file gets to 15 items it does not remove the oldest and insert a new entry.
Thanks in advance!
$rss->parsefile($rss_output); pop(@{$rss->{'items'}}) if (@{$rss->{'items'}} == 15); $rss->add_item(title => $title, link => $rss_link, description => $desc, mode => 'insert' );
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: XML::RSS question
by mikeirw (Pilgrim) on Jun 28, 2002 at 21:27 UTC | |
by Anonymous Monk on Jun 28, 2002 at 21:31 UTC | |
by mikeirw (Pilgrim) on Jun 29, 2002 at 00:31 UTC | |
by Anonymous Monk on Jun 29, 2002 at 01:16 UTC | |
by mikeirw (Pilgrim) on Jun 29, 2002 at 06:11 UTC |
Back to
Seekers of Perl Wisdom