sub sg { my $result; die "COND isn't valid" if (COND eq undef); if (COND) { $result = 1; } else { $result = 2; }; die "result isn't valid" if ($result eq undef); return $result; }
In reply to Re: if else and not reachable coding style
by Anonymous Monk
in thread if else and not reachable coding style
by szabgab
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |