ProAnswers.org

Use of boolean variables in perl?

See following

$var = false;
$var = FALSE;
$var = False;

None of these work. I get the error message
How I use this 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.