Fair point, but you don't really need to worry about the else when your reaction to the if condition is death.
unless ( defined $id ) { die "Why is this ID not defined?"; } # Life goes on normally for everyone else.
And I disagree with your closing, an early return in cases like that is exactly the point. You want to take any steps you can to make the code more readable, especially if it means completely ignoring my initial "switch the logic" comment.
In reply to Re^3: String equality and undef
by webfiend
in thread String equality and undef
by joec_
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |