Dr Manhattan has asked for the wisdom of the Perl Monks concerning the following question:
Hi all
I have a script using recursion to traverse a tree. I get a 'deep recursion on subroutine' warning. The tree is quite large so I'm assuming that I will take a while. But how can I be sure this thing won't go on infinitely? Can I be sure that it will eventually stop? I've tried to read up on it but I can't find any clear answers.
Thanks in advance for any help, much appreciated
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Deep recursion on subroutine
by choroba (Cardinal) on Sep 04, 2013 at 12:39 UTC | |
Re: Deep recursion on subroutine
by hdb (Monsignor) on Sep 04, 2013 at 12:56 UTC | |
Re: Deep recursion on subroutine
by NetWallah (Canon) on Sep 04, 2013 at 13:38 UTC | |
Re: Deep recursion on subroutine
by davido (Cardinal) on Sep 04, 2013 at 15:38 UTC | |
Re: Deep recursion on subroutine
by Laurent_R (Canon) on Sep 04, 2013 at 18:03 UTC |
Back to
Seekers of Perl Wisdom