Skip Menu | You are currently an anonymous guest. | Login | Return to Main | About rt.cpan.org
 

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.

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

Owner: SHLOMIF <SHLOMIF [...] cpan.org>
Requestors: KRISHPL <krishpl [...] shamu.corp.sgi.com>
Cc:
AdminCc:

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



X History Display mode: Brief headersFull headers
#   Sat Mar 10 23:38:10 2007 KRISHPL - Ticket created  
Subject: pop, not shift in usage summary?
[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);

#   Wed Aug 22 14:45:21 2007 SHLOMIF - Correspondence added 10 min  
[text/plain 80b]
Fixed in the svn trunk. Thanks for reporting this.

Regards,

Shlomi Fish
#   Wed Aug 22 14:45:24 2007 RT_System - Status changed from 'new' to 'open'  
#   Wed Aug 22 14:45:26 2007 SHLOMIF - Status changed from 'open' to 'resolved'  
#   Wed Aug 22 14:45:29 2007 SHLOMIF - Given to SHLOMIF