Subject: | SuppressEmpty does not work on an undefined value in arrayref. |
Date: | Thu, 14 Sep 2006 16:38:09 +0900 |
To: | bug-XML-Simple [...] rt.cpan.org |
From: | "かんな (Kanna)" <kanna [...] fw.jellybean.jp> |
Hi, I use XML-Simple-2.14 and have a problem. The sample code below:
print XMLout { xml => [undef] };
This prints:
<opt>
<xml></xml>
</opt>
It's OK, but adding SuppressEmpty:
print XMLout { xml => [undef] }, SuppressEmpty => 1;
Also prints:
<opt>
<xml></xml>
</opt>
I think this should be <opt></opt> because
Show quoted text
> Setting the option to a true value (eg: 1) causes undefined values to
be skipped altogether on output.
Is this a bug?
Regards.