in reply to Using hash value as condition.

Not using strict and not using warnings. Either would have hinted at the reason.