in reply to Re: Simple Program Huge Problem
in thread Simple Program Huge Problem

a call to return after each recursive call, like:
FULLY_DESTROY($$ref); return;
solves the problem don't ask me why but it works...

Replies are listed 'Best First'.
Re^3: Simple Program Huge Problem
by Corion (Patriarch) on Nov 09, 2008 at 17:48 UTC

    You seem to be confused about your program flow. From looking at the call structure of your program, the flow will be

    1. Step 1
    2. Step 2
    3. Step 4
    4. Step 3

    You have an endless loop in FULLY_DESTROY, which I don't see where you leave it. Maybe that is the reason for why your program does work differently than you expect it to. You would have found this by removing all other things from your program and replacing it by simple statements that just printed out "STEP 1" etc.