How to use boolean variables in Perl?

In Perl, the following evaluate to false in conditionals:
0
'0'
undef
''  # Empty scalar
()  # Empty list
('')

The rest are true. There are no barewords for true or false.



perl variables

Popular Topics

Recent Languages