You really should be using strict
Why?
In reply to Re^2: value disappears in if statement by Anonymous Monk in thread value disappears in if statement by ggadd