in reply to Re^4: Unexpected effect of -w with undefin thread Unexpected effect of -w with undef
That is perfectly logical. eq compares strings. undef stringifies to a an empty string. Two empty strings are equal.
Makeshifts last the longest.