[sf-perl] 100 levels deep in subroutine calls!

Randal L. Schwartz merlyn at stonehenge.com
Tue Jun 19 09:35:05 PDT 2007


>>>>> "Loo," == Loo, Peter # PHX <Peter.Loo at source.wolterskluwer.com> writes:

Loo,> Is this strictly a Perl debug error message or is this a generic Perl
Loo,> error message?  Is there a way around this limitation?  I saw something
Loo,> while searching on the Internet about setting the $DB::deep to a higher
Loo,> number.

Why are you recursing on every line?  Can you flatten your call stack?
Perhaps by gathering all the data first, then acting on it, rather than acting
on it as you see each line.

I've *never* hit the nested-100-deep limit except by accident (or
deliberately).

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn at stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!


More information about the SanFrancisco-pm mailing list