Not using strict and not using warnings. Either would have hinted at the reason.
In reply to Re: Using hash value as condition. by hippo in thread Using hash value as condition. by mephtu