in reply to Re^2: undef == 0?
in thread undef == 0?

== forces scalar context. Both 1 and 2 are treated as decimal integers. Obviously they are not the same.

print+qq(\L@{[ref\&@]}@{['@'x7^'!#2/"!4']});

Replies are listed 'Best First'.
Re^4: undef == 0?
by stu42j (Sexton) on Oct 25, 2007 at 19:37 UTC
    Uhm, yeah. That was a rhetorical question type thing in response to swampyankee's suggestion that since undef and 0 are both false then it logically follows that undef == 0 should also be true. I was just giving an example where boolean equality is not equivalent to numeric equality.