On 10/6/01 10:27 PM, Damian Conway wrote: >> Doesn't that mean: >> >> "hello" == 0 && 0 != NaN >> >> will evaluate to true? > > No. The step you're missing is that the non-numeric string "hello", > when evaluated in a numeric context, produces NaN. So: > > "hello" == 0 && 0 != NaN > > is: > > Nan == 0 && 0 != NaN > > which is false.
Heh, my brain's Perl interpreter needs to be upgraded, obviously. It sees "hello" == 0 and produces 0 == 0. Thanks for the clarification :) -John