The "special false" is dual valued. You can reproduce it like this:
(Which gives a warning.) Now "$false" is exactly the same as "not 1".$false = ''; $foo = $false + 0;
Or more explicit:
use Scalar::Util 'dualvar'; $false = dualvar(0, '');
In reply to Re: Truth and Falsehood
by jo37
in thread Truth and Falsehood
by haukex
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |