Subject: | bug in XML-LibXML-Iterator-1.03's XML::LibXML::NodeList::Iterator::iterate() |
Date: | Sun, 9 Sep 2007 20:44:56 +0200 |
To: | bug-XML-LibXML-Iterator [...] rt.cpan.org |
From: | Stoned Elipot <seb [...] ssr.univ-paris-diderot.fr> |
Hi,
I think there a little bug in XML-LibXML-Iterator-1.03's
XML::LibXML::NodeList::Iterator::iterate():
nodes are not passed down the sub called by iterate().
Attached you will find a test case and a patch (modelled after
XML::LibXML::Iterator::iterate()'s code).
Cheers, Stoned.
$uname -a
NetBSD runabout 4.99.25 NetBSD 4.99.25 (RUNABOUT) #6: Tue Jul 24 18:25:29 CEST 2007 seb@runabout:/u/seb/RUNABOUT/kernel/compile/RUNABOUT i386
$perl -v
This is perl, v5.8.8 built for i386-netbsd-thread-multi
Copyright 1987-2006, Larry Wall
Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.
Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl". If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.
$perl -e 'use XML::LibXML::NodeList::Iterator; print "$XML::LibXML::NodeList::Iterator::VERSION\n";'
1.03
$
Message body is not shown because sender requested not to inline it.