On Thu, Oct 26, 2006 at 11:29:41AM -0500, developer wrote:
> I'm researching an error that reports: "Deep recursion on subroutine ..."
>
> I've not been able to figure out when (at what level) this warning is
> actually displayed. I have a test sub that recurses to the 100,000th
> level, but have not been able to force the warning. A copy of the prog
> in production displayed this warning in the log though, and while it's
> possible, it's not plausible that this program actually recursed that
> far. Typical recursions are in the low 10s.
>
> Does anyone have experience with debugging this? Any documentation that
> explains deep recursion warnings?
perldoc perldiag:
Deep recursion on subroutine "%s"
(W recursion) This subroutine has called itself (directly or
indirectly) 100 times more than it has returned. This probably
indicates an infinite recursion, unless you're writing strange
benchmark programs, in which case it indicates something else.
It works as described for me. Perhaps your test sub isn't doing what you
think it's doing, or perhaps you forgot to turn on warnings?
Ronald
_______________________________________________
Boston-pm mailing list
[email protected]
http://mail.pm.org/mailman/listinfo/boston-pm