in reply to Perl Best Practices - Loop Labels

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re^2: Perl Best Practices - Loop Labels
by haukex (Archbishop) on Apr 17, 2020 at 10:05 UTC
    "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).