Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^2: "no warnings 'uninitialized'" failing

by LanX (Sage)
on Oct 16, 2017 at 21:23 UTC ( #1201472=note: print w/replies, xml ) Need Help??


in reply to Re: "no warnings 'uninitialized'" failing
in thread "no warnings 'uninitialized'" failing

Hmm, it looks weird that a boolean switch should accept 1 but not 0. (???)

So I took a look into the documentation. ...

Turns out that  SuppressEmpty is not a real flag, but that "" and undef are used to define how empty elements are represented or ignored in a case of a true value.

And the docs explicitly talk about "suppressing the generation of warnings" in XMLout().

I find the naming and concept too error prone.

Something like  RepresentEmpty => "off" | "" | undef might have been a better choice.

And I'm understanding even better now, why this module is discouraged, even in its own POD.

Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1201472]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2022-08-16 11:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?