Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Perl Best Practices - Loop Labels

by swl (Priest)
on Apr 16, 2020 at 08:07 UTC ( #11115613=note: print w/replies, xml ) Need Help??


in reply to Perl Best Practices - Loop Labels

I find loop labels quite useful for comprehension, particularly for next/last calls if the loop gets long or nested (although both indicate some other refactoring is probably needed). The example provided by tobyink in 11115607 sums it up nicely.

The laufeyjarson blog series on PBP might also be of general interest. Loop labels are covered in http://blog.laufeyjarson.com/2015/02/pbp-084-loop-labels/.

Replies are listed 'Best First'.
Re^2: Perl Best Practices - Loop Labels
by Anonymous Monk on Apr 16, 2020 at 10:03 UTC
    Mentioned in passing more like, not covered :)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://11115613]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (3)
As of 2020-09-27 04:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If at first I donít succeed, I Ö










    Results (142 votes). Check out past polls.

    Notices?