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}.
In reply to Re: hash checking
by thundergnat
in thread hash checking
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |