in reply to Perl Best Practices - Loop Labels

I also use loop labels for control flow in nested loops where appropriate. When I coded in COBOL in the 1970's using structured programming, I made use of the GO TO statement to transfer control to a label at the end of the subroutine to avoid unnecessarily complex nested IF statements. I remember the agony of trying to debug code with IF statements nested to an ungodly number of levels, when a few well placed GO TO's to the end of the subroutine would have made life much easier. There is definitely a place for loop labels.

"It's not how hard you work, it's how much you get done."