in reply to Re: Perl Best Practices - Loop Labels
in thread Perl Best Practices - Loop Labels
"next LABEL" and/or "last LABEL" constructions ... somewhere(!) anywhere(!!) else ... Code such as this is quite possibly worse than a GOTO.
Again, that's FUD, and "anywhere" is plain wrong. If one sees either a label on a loop/block or next/last/redo LABEL, then that label is quickly found via a search, and unlike goto, one knows which scope the label has to be in ("Exiting subroutine via next/last" are important warnings).
|
---|