in reply to subroutine recurse vs goto LABEL
Do not use goto as a general purpose control device. Learn to think in terms of structured control statements like standard looping structures, function calls, etc. The remaining uses which are generally accepted for goto in languages like C are filled in Perl by loop control statements like next, last, and redo. The remaining uses of goto in Perl which I consider appropriate involve deep voodoo. That is essentially, "If you don't know, then don't ask. You won't need to be doing it."
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re (tilly) 1: subroutine recurse vs goto LABEL
by John M. Dlugosz (Monsignor) on Sep 15, 2001 at 02:44 UTC |