|P is for Practical|
Deep recursion on subroutineby Dr Manhattan (Beadle)
|on Sep 04, 2013 at 12:36 UTC||Need Help??|
Dr Manhattan has asked for the
wisdom of the Perl Monks concerning the following question:
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