The FALSE values:
undef
""
0 0.0 00000 0e+10
"0"
Other values such as the following are TRUE
1
"00"
"0\n"
if ($z) {
# $z is true
}
if (defined $x) {
# $x is defined (not undef)
}| Prev | Home (Copyright Gabor Szabo) Perl Training Israel | Next |
| Boolean expressions (logical operators) | Up | Your Salary is in Danger - Short-Circuit |