Bug#835791: running XML::LibXML::XPathContext SYNOPSIS fails

積丹尼 Dan Jacobson jidanni at jidanni.org
Sat Aug 27 02:22:26 UTC 2016


Package: libxml-libxml-perl
Version: 2.0128+dfsg-1
Severity: wishlist
File: /usr/share/man/man3/XML::LibXML::XPathContext.3pm.gz

Running the SYNOPSIS, we see,
1. You forgot a lot of ';'.
2.
perl -pwle 's/$/;/;' /tmp/SYNOPSIS|perl -w
"my" variable $xpc masks earlier declaration in same scope at - line 2.
Name "main::nodelist" used only once: possible typo at - line 16.
Name "main::position" used only once: possible typo at - line 24.
Name "main::size" used only once: possible typo at - line 26.
Name "main::bool" used only once: possible typo at - line 21.
Name "main::xpath_expression" used only once: possible typo at - line 21.
Name "main::namespace_uri" used only once: possible typo at - line 3.
Can't locate object method "new" via package "XML::LibXML::XPathContext"
(perhaps you forgot to load "XML::LibXML::XPathContext"?) at - line 1.

OK, after adding use XML::LibXML::XPathContext; we still get
$ perl -pwle 's/$/;/;' /tmp/s|perl -w
Name "main::namespace_uri" used only once: possible typo at - line 4.
Name "main::nodelist" used only once: possible typo at - line 17.
Name "main::xpath_expression" used only once: possible typo at - line 22.
Name "main::size" used only once: possible typo at - line 27.
Name "main::bool" used only once: possible typo at - line 22.
Name "main::position" used only once: possible typo at - line 25.
Use of uninitialized value in subroutine entry at - line 4.
XPathContext: cannot unregister namespace
I guess the last two are still bad.



More information about the pkg-perl-maintainers mailing list