Skip Menu |

This queue is for tickets about the XML-RSS CPAN distribution.

Report information
The Basics
Id: 25368
Status: resolved
Worked: 10 min
Priority: 0/
Queue: XML-RSS

Owner: SHLOMIF [...]
Requestors: krishpl [...]

Bug Information
Severity: Unimportant
Broken in: 1.22
Fixed in: (no value)

Subject: pop, not shift in usage summary?
Download (untitled) / with headers
text/plain 480b
I tested this out, and I think it should be 'shift', not 'pop', to get the oldest item, if items are added via the default 'append' mode, rather than 'insert'. I tested this with mode => 'append' and had to use shift rather than pop. # insert an item into an RSS file and removes the oldest item if # there are already 15 items my $rss = new XML::RSS; $rss->parsefile("fm.rdf"); pop(@{$rss->{'items'}}) if (@{$rss->{'items'}} == 15);
Fixed in the svn trunk. Thanks for reporting this. Regards, Shlomi Fish

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to