†The essence being that each block has exactly one entry, and exactly one exit point.foreach my $a (@b) { if (!...) { do_something(); if (!...) { do_something_else(); if (!...) { do_something_again(); } } } perform_cleanup(); }
In reply to Re: Avoiding goto
by JavaFan
in thread Avoiding goto
by elTriberium
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |