if key{hashA} eq key{hashB} { print FH value{hashA} } if not found then { print FH value{hashB} }