Skip Menu |
 

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

Report information
The Basics
Id: 112303
Status: new
Priority: 0/
Queue: XML-Dumper

People
Owner: Nobody in particular
Requestors: michael.weickum [...] tds.fujitsu.com
Cc:
AdminCc:

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



Subject: Use of uninitialized value in concatenation (.) or string at XML/Dumper.pm line 400.
Date: Tue, 23 Feb 2016 07:46:23 +0000
To: "bug-XML-Dumper [...] rt.cpan.org" <bug-XML-Dumper [...] rt.cpan.org>
From: "Weickum, Michael" <michael.weickum [...] tds.fujitsu.com>
Download (untitled) / with headers
text/plain 835b
You can avoid this warning message which will appear if you pass a undef scalar to pl2xml. my $test=undef; my $dump = new XML::Dumper; my $xml=$dump->pl2xml( $test ); print $xml; Will give you a warning message: Use of uninitialized value in concatenation (.) or string at XML/Dumper.pm line 400. Just add a little check in line 400: 400: - $string .= "\n" . " " x $indent . $type . xml_escape( $ref ) . "</scalar>"; 400: + $string .= "\n" . " " x $indent . $type . ( defined $ref ? xml_escape( $ref ) : '' ) . "</scalar>"; [Webinar "Managed on-premise Cloud"]<https://ts.fujitsu.com/cisi/de/Event.aspx?ID=5a24805d-7ed4-48c6-a99e-cd97d3e102be#TabNav?utm_source=FTDS%20EMail&utm_medium=Signature%20FTDS%20EMail&utm_campaign=Managed%20on-premise%20Cloud&utm_term=&utm_content=Anmeldung>
Download imagedd10cb.JPG
image/jpeg 22.7k
imagedd10cb.JPG


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.