Both unless() and the trailing if() are constant sources of bugs in the code I see.
Depends in my experience. With newbie developers or with people new to Perl it can cause problems. Appropriately used I find they produce clearer and more readable code.
Personally I'd rather train up the developer than simplify the language.
In reply to Re^2: Control Structures
by adrianh
in thread Control Structures
by artist
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |