my $neededVal = 80.0; if (defined $Hash{$neededVal}{param1}{key1}) { print "DEFINED"; } else { for (keys %Hash) { print "$_\n"; #this prints 80.0 as a KEY (among the others)!!! How?.. } }