if, while, unless
. So it is important you know what truth is, as defined by Perl, not your tax forms. There are three main rules: - Any string is true except for
""
and"0"
. - Any number is true except for
0
. This includes negative numbers. - Any undefined variable is false. A undefined variable is one which doesn't have a value, ie has not been assigned to.
No comments:
Post a Comment