in reply to Re^2: Logical Not not working!!!
in thread Logical Not not working!!!

You apparently have a boolean, so checking involes using
if (!$value)
instead of
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.