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