1) avoiding excessive nested blocks in terms of length and depth, 2) having a single point of return or exit from a routine or subroutine and 3) avoiding goto.
That's why Larry created subroutines.
And (2) is just a stupid restriction. Adding extra returns is one of the most effect refactoring tools I found.
- tye
In reply to Re^2: Number of times I've used goto in Perl (sub, return++)
by tye
in thread Number of times I've used goto in Perl
by vroom
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |