-
The special value undef is false. (We'll see
this a little later in this section.)
-
Zero is false; all other numbers are true.
-
The empty string ('') is false; all other strings
are normally true.
-
The one exception: since numbers and strings are equivalent, the
string form of zero, '0', has the same value as
its numeric form: false.
So, if your scalar value is undef,
0, '', or
'0', it's false. All other scalars are
true -- including all of the types of scalars that we
haven't told you about yet.