有人可以解释Perl中字符串"0但是真"的含义吗?据我所知,它在整数比较中等于零,但在用作布尔值时求值为true.它是否正确?这是语言的正常行为还是在解释器中作为特殊情况处理的特殊字符串?
perl integer boolean
boolean ×1
integer ×1
perl ×1