in reply to Unexpected effect of -w with undef

Yes, this is called the "ew!" gotcha.

See also: the pie gotcha.