while ($some_condition) { &some_stuff(); last if $another_condition; &some_more_stuff; last; } [download]
In reply to Re: Breaking out of an 'if' by holli in thread Breaking out of an 'if' by jpfarmer