There's no promise in the docs that the result of "!" will be "1" and "undef". It could be "37" for "a true value".$x = int !!$y;
-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.
In reply to Re^3: Better expression for $x = !!$y||0
by merlyn
in thread Better expression for $x = !!$y||0
by borisz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |