Skip Menu |

This queue is for tickets about the Search-Sitemap CPAN distribution.

Report information
The Basics
Id: 52742
Status: new
Priority: 0/
Queue: Search-Sitemap

People
Owner: Nobody in particular
Requestors: info [...] ralfebert.de
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 2.10
Fixed in: (no value)



Subject: read() seems not to read
Execute the following code repeatedly - according to the docs, every time you execute this, a new url should be added (time changes the url). This doesn't happen, read doesn't seem to read the existing file contents. Also, if you happen to call $map->xml() after reading to introspect the contents, you always end up with an empty sitemap. use Search::Sitemap; my $map = Search::Sitemap->new(); $map->read( 'sitemap.xml' ); $map->add( loc => 'http://www.example.com/' . time ); $map->write( 'sitemap.xml' );