in reply to Re: scalar values assignment
in thread scalar values assignment
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.
|
|---|