Subject: | Warnings on comparison with undef in NodeIterator.pm |
Date: | Fri, 1 Feb 2008 12:10:39 +0100 |
To: | <bug-XML-DOM-Lite [...] rt.cpan.org> |
From: | <adrian.schneider [...] ubs.com> |
concerning XML::DOM::Lite 0.15; perl 5.8.8; Cygwin
This is not a real bug, rather a little nuisance. When warnings are
enabled ("perl -w" or "use warnings;") the
NodeIterator::nextNode function issues warnings like: "Use of
uninitialized value in numeric eq (==) ...".
Thus I replaced expressions like ($x == undef) with (! defined $x) in
lines 38 and 62 of NodeIterator.pm
which avoids these warnings.
I did not check whether other modules are also touched by this issue.
Regards
Adrian Schneider