in reply to Looping based on a Conditional

What's wrong with the subroutine approach? It certainly seems a lot clearer than any convoluted conditional-goto type of thing.

The whole point of subroutines is so you don't have to write stuff more than once, after all.

Replies are listed 'Best First'.
Re^2: Looping based on a Conditional
by madbombX (Hermit) on Jul 20, 2006 at 17:28 UTC
    The reason I do not want to go with the subroutine approach is because this is part of the main body of the program. That would mean the main body just opens this loop and drops right into subroutines. My coding style (be it right or wrong), is that the main body of the program stays as the main body and a subroutine should be for a specific purpose, not to replace the main body of the program.