in reply to Re^2: Logical Not not working!!!
in thread Logical Not not working!!!
instead ofif (!$value)
if ($value == 0)
Mind you, the latter would work fine with !1 as well, so I don't see the problem.
If need to format it to print it, you can use the conditional operator.
print("value = ", $value?"true":"false", "\n");
But there's no need to format it until it's time to output it.
|
|---|