in reply to Re^2: Determining whether a value is zero.
in thread Determining whether a value is zero.

It works only if I do not touch (i.e. expose it to various contexts) the variable before running the test:
Well, yes. That's because looking at variables in Perl can actually modify them.
  • Comment on Re^3: Determining whether a value is zero.