Add one on each recursive call.
When the value exceeds some "reasonable" number corresponding to the max expected depth, call "Carp" and bail.
My goal ... to kill off the slow brain cells that are holding me back from synergizing my knowledge of vertically integrated mobile platforms in local cloud-based content management system datafication.
In reply to Re: Deep recursion on subroutine
by NetWallah
in thread Deep recursion on subroutine
by Dr Manhattan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |