in reply to Re: testing defined($x) && length($x)
in thread testing defined($x) && length($x)

That introduces a false negative. The if's body is no longer executed when $x eq '0'.
  • Comment on Re^2: testing defined($x) && length($x)