in reply to Re^3: Unexpected effect of -w with undef
in thread Unexpected effect of -w with undef

What confused me is that undef eq undef is true, I guess indoctrinated by SQL hanDling of NULL I expect it to be undefined or false ... I guess this is not something that will get changed however.

/J\

Replies are listed 'Best First'.
•Re^5: Unexpected effect of -w with undef
by merlyn (Sage) on Dec 22, 2004 at 16:45 UTC
Re^5: Unexpected effect of -w with undef
by Aristotle (Chancellor) on Dec 22, 2004 at 16:45 UTC

    That is perfectly logical. eq compares strings. undef stringifies to a an empty string. Two empty strings are equal.

    Makeshifts last the longest.