in reply to Re^4: Unexpected effect of -w with undef
in 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.

  • Comment on Re^5: Unexpected effect of -w with undef