That is perfectly logical. eq compares strings. undef stringifies to a an empty string. Two empty strings are equal.
Makeshifts last the longest.
In reply to Re^5: Unexpected effect of -w with undef
by Aristotle
in thread Unexpected effect of -w with undef
by DrWhy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |