in reply to Re^6: multi level hash terror - if statement to access specific elements
in thread multi level hash terror - if statement to access specific elements

… the correct equality operator …
Did you notice that == is not the correct equality operator? Most strings numerically evaluate to zero, so
'apples' == 'pears'
is true, while
'apples' eq 'pears'
is false.