if ($val == 2 ){ keys %hash; return "The key for 2 is $key\n"; }