I would strengthen your first rule of thumb to: "You should only use a label if you have two or more nested loops and need to exit from an inner loop to an outer loop".
I very much agree with your second rule except I would widen it to include any nested code: "If you have nested flow control blocks consider moving inner blocks into functions".
In reply to Re^3: Another reason for perl beginners to read perldocs
by GrandFather
in thread Another reason for perl beginners to read perldocs
by Don Coyote
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |