http://www.perlmonks.org?node_id=1058049


in reply to Compare two hash values for a match

in your top scope '$name' is never set, i.e. it's undef in all your attempts as hash key.

Cheers Rolf

( addicted to the Perl Programming Language)