Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: "no warnings 'uninitialized'" failing

by haukex (Archbishop)
on Oct 16, 2017 at 14:16 UTC ( [id://1201445]=note: print w/replies, xml ) Need Help??


in reply to "no warnings 'uninitialized'" failing

Have you determined which of the values it is complaining about (is it maybe RootName => undef, or $data as LanX pointed out)? Have you tried any alternatives, i.e. making sure you're not feeding the function undefs where you shouldn't be? Note the effect of warnings is lexical in scope, so it won't change anything coming from inside of XML::Simple. If that is the case, and you're feeding the function valid data, you could try the following ugly hack to suppress all warnings from inside XMLout (although it's about as ugly as using XML::Simple for XML output in the first place...): my $xmlout = do { local $SIG{__WARN__}=sub{}; XMLout(...) };

Minor edits for clarification.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (4)
As of 2024-04-26 08:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found