if (not defined wantarray) {I try to use and, or, and not only for flow control to minimize the potential for precedence mishaps (e.g. not defined foo later being changed to not defined foo && defined bar when ! defined foo && defined bar was meant). It may look a little funny to have a ! before defined at first, but you do get used to it.
In reply to Re^2: Scalar and void subroutines
by ysth
in thread Scalar and void subroutines
by eff_i_g
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |