I have a script that recursively calls itself. Inside of the recursive routine, there are several places (if statements using the return statement) for the code to return to the previous level of recursion and pick up to continue on with it's work. I am using Perl 5.05 on a Sun Unix platform.
The problem: It appears that if a return statement is executed inside of say for eaxmple 10 levels of recursion, it breaks out of all levels of recursion! I want it to go back to the previous level of recursion and the next statement after the calling of it's self.
I appreciate any help. TIA (Thanks in Advance)