The extra {} is the code block, which the last will exit.if ($action eq 'new') {{ if (!$name) { &print_error; last; } &code_to_create_new(); }}
In reply to Re: need advice on conditionals
by thedoe
in thread need advice on conditionals
by nmerriweather
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |