Deep recursion is a problematic warning as perfectly legitimate code can emit it, and that code is not always under your control. That's the case here.
In 5.12, 100 levels of recursion triggers the warning, but I think the count that triggers the warning was increased at some point. This could have been after the rather old 5.8.8 you are using. Upgrading (perhaps even to 5.8.9) might solve the issue.
Alternative, you could use a warning handler to suppress that warning.
local $SIG{__WARN__} = sub {
return if $_[0] =~ /^Deep recursion /;
local $\;
print STDERR $_[0];
};
or
my $prev_handler = $SIG{__WARN__};
local $SIG{__WARN__} = sub {
return if $_[0] =~ /^Deep recursion /;
local $SIG{__WARN__} = $prev_handler;
warn($_[0]);
};
Update: What changed was that a limit that was hardcoded became a define (PERL_SUB_DEPTH_WARN) you could change when you build perl.
-
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 How to display code and escape characters
are good places to start.
|