Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Deep recursion error using LibXML

by sundialsvc4 (Abbot)
on Dec 31, 2010 at 03:39 UTC ( [id://879897]=note: print w/replies, xml ) Need Help??


in reply to Deep recursion error using LibXML

“Deep recursion” is a warning, about an “unusual condition that might warrant your attention.”   What you need to do next is to determine what is the underlying cause of the message and whether-or-not it is, in fact, a legitimate cause.   For example, it may well be that the XML data that you are being asked to process has “the structure from Hell,” and if it does, there is nothing really that you can do about it.   (“Don’t go there...”)   The data is what the data is ... good, bad, or indifferent.   But, on the other hand, maybe Perl is alerting you to a genuine bug in your code.   The only way to find out ... is to find out.

If the condition is legitimate, the no warnings pragma can be used to suppress this particular message.   I would bracket the affected lines of source-code with the most specific, limited pragma, accompanied by very liberal comments.   (How soon we do forget... especially given that we are now older-than-dirt.)   Then, countermand the order (use warnings...) as soon as possible thereafter.

Replies are listed 'Best First'.
Re^2: Deep recursion error using LibXML
by ikegami (Patriarch) on Dec 31, 2010 at 05:02 UTC

    the no warnings pragma can be used to suppress this particular message.

    Yeah, but you would have to place it in the XML::LibXML functions that issue the warning, since use warnings is lexically scoped.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2024-03-29 01:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found