if ($some_condition) { some_stuff(); if (!$some_condition2) { some_more_stuff(); } }
or
if ($some_condition) { some_stuff(); } if ($some_condition && !$some_condition2) { some_more_stuff(); }
or
IF: { if (some_condition) { some_stuff(); last IF if $some_condition2; some_more_stuff(); } }
btw, don't use & on function calls unless you must. It causes Perl to behave differently if the function has a prototype.
In reply to Re: Breaking out of an 'if'
by ikegami
in thread Breaking out of an 'if'
by jpfarmer
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |