if($scalar) ...
Strictly speaking, that would test whether $scalar is true, not whether it's defined. 0 or "", for example, evaluate to false, but are considered "defined". Test defined instead.
In reply to Re^2: scalar values assignment
by almut
in thread scalar values assignment
by gogoglou
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |