Skip Menu |

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

Report information
The Basics
Id: 58359
Status: resolved
Priority: 0/
Queue: XML-Simple

People
Owner: Nobody in particular
Requestors: juannavarroperez [...] gmail.com
Cc:
AdminCc:

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



Subject: XML::Simple produces spurious warnings on empty CDATA
Date: Sun, 13 Jun 2010 17:16:21 +0200
To: bug-XML-Simple [...] rt.cpan.org
From: Juan Antonio Navarro Pérez <juannavarroperez [...] gmail.com>
The following program #!/usr/bin/perl -w use XML::Simple; XMLin('<?xml version="1.0" encoding="UTF-8"?><root><elem><![CDATA[]]></elem></root>'); produces a warning Use of uninitialized value $val in pattern match (m//) at /System/Library/Perl/Extras/5.10.0/XML/Simple.pm line 1023. If the empty CDATA is removed, the warning also disappears. -- Juan Antonio Navarro Pérez http://navarroj.com/research
I was not able to reproduce this problem however I have added in a line which should suppress the warning anyway. Fixed in 2.20. Regards Grant