in reply to Avoiding goto
†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(); }
|
|---|