Skip Menu |

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

Report information
The Basics
Id: 46737
Status: resolved
Priority: 0/
Queue: Search-Sitemap

People
Owner: Nobody in particular
Requestors: andrew [...] illywhacker.net
Cc:
AdminCc:

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



Subject: Search::Sitemap::Types bug?
Date: Tue, 9 Jun 2009 00:49:20 +1000
To: bug-Search-Sitemap [...] rt.cpan.org, email [...] jasonkohles.com
From: Andrew Solomon <andrew [...] illywhacker.net>
hi Jason I'm currently using: ============================================ Search::Sitemap version 2.07 Moose::Util::TypeConstraints version 0.79 This is perl, v5.8.8 built for darwin-thread-multi-2level Darwin einstein-2.local 9.7.0 Darwin Kernel Version 9.7.0: Tue Mar 31 22:52:17 PDT 2009; root:xnu-1228.12.14~1/RELEASE_I386 i386 Given the code: ============================================ my $foo = Search::Sitemap::URL->new( loc => 'http://www.jasonkohles.com/', lastmod => '2005-06-03', changefreq => 'daily', priority => 1.0, ); ============================================ I get a warning: ============================================ WARNING: String found where Type expected (did you use a => instead of a , ?) at /Users/andrew/gartoo-code/ext/lib/perl5//Search/Sitemap/Types.pm line 60 Solution? ============================================ Line 60 Search/Sitemap/Types.pm is subtype SitemapLastMod, as 'Str', where { /$lastmod_re/ }; If I remove the quotes around Str the problem goes away. subtype SitemapLastMod, as Str, where { /$lastmod_re/ }; Please let me know if it's a bug with Search::Sitemap or elsewhere. many thanks Andrew
Fixed in 2.08. -- www.jasonkohles.com