I have tried:
$var = false;
$var = FALSE;
$var = False;
None of these work. I get the error message
Bareword "false" not allowed while "strict subs" is in use.
转载于:https://stackoverflow.com/questions/1036347/how-do-i-use-boolean-variables-in-perl