in reply to Re^4: Go to perl::critic
in thread Go to perl::critic

But a labeled block is a single loop, that redo makes infinite. I said outside loops is where goto comes in really handy.

But the goto means the above code also contains a loop. Think assembly! No blocks, no loop constructs, no ifs, just conditional jumps...

Replies are listed 'Best First'.
Re^6: Go to perl::critic
by Anonymous Monk on Oct 07, 2019 at 14:11 UTC
    If you're really worried about the cost of a while loop then maybe Perl isn't the right tool for the job.