foreach my $x (values %{ $hash{somekey}{otherkey} } ) { }