in reply to hash checking
You are checking the hash value. The hash key is "three". You probably are not storing the value you think you are in the hash. eq comparisons are case sensitive.
Check what the actual value is in $questions{"three"}.
Possibly something like:
if (lc $questions{three} eq 'false')
will work for you.
BTW, you can take advantage of the auto-quoting of hash keys and just refer to it as $questions{three}.
|
|---|