Re:Perlsecret – Perl secret operators and constants
by lkbm on Monday January 12, 2026 @08:46PM
(#46596479)
Fair, I forgot that C bools are just 0 and 1. That's where I first learned the !! trick, but it's been many a year.
[ Parent
| on HN ]
Re:Perlsecret – Perl secret operators and constants
by defrost on Monday January 12, 2026 @08:52PM
(#46596524)
Err, C bools have two interpreted values, TRUE, and FALSE.
Confusingly (to some) they are integers and while 0 represents FALSE, any non 0 value represents TRUE.
It's pedantic, apologies, but that is why the GP refers to "convert to strict boolean"