in reply to Re^2: Another reason for perl beginners to read perldocs
in thread Another reason for perl beginners to read perldocs
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".
|
|---|