Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

comment on

( #3333=superdoc: print w/replies, xml ) Need Help??

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.


In reply to Re: "no warnings 'uninitialized'" failing by haukex
in thread "no warnings 'uninitialized'" failing by jest

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (5)
As of 2022-08-11 08:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?