Skip Menu |

This queue is for tickets about the XML-SAX-Writer CPAN distribution.

Report information
The Basics
Id: 154
Status: resolved
Priority: 0/
Queue: XML-SAX-Writer

People
Owner: Nobody in particular
Requestors: rho [...] bigpond.net.au
Cc:
AdminCc:

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



Subject: make test warnings
I see a lot of warnings Use of uninitialized value in string eq at blib/lib/XML/SAX/Writer.pm line during a test suite where I use XML::SAX::Writer. I have silenced this with 140c140 < if (defined $uri && $uri ne $at->{NamespaceURI}) { # ns has precedence --- Show quoted text
> if ($uri ne $at->{NamespaceURI}) { # ns has precedence
[DRRHO - Sat Jan 19 13:20:58 2002]: Show quoted text
> I see a lot of warnings > > Use of uninitialized value in string eq at blib/lib/XML/SAX/Writer.pm > line > > during a test suite where I use XML::SAX::Writer. > > I have silenced this with > > 140c140 > < if (defined $uri && $uri ne $at->{NamespaceURI}) { # ns > has precedence > ---
> > if ($uri ne $at->{NamespaceURI}) { # ns has precedence
Thanks for the patch but I don't think that silencing it is the correct thing to do. If $uri is not defined, it means that there has been a problem mapping a prefix to a URI, ie that one is trying to write an element that has an unbound prefix. As per the Namespace rec, that's a well-formed error and the warning is correct. I've changed the code to make the warning make more sense, ie I warn myself instead of letting Perl do it. It'll be in the next release. -- --darobin