in reply to 2 newby questions

You seem to be misunderstanding how hashes work. A value is associated to a key, not vice versa. Therefore, $hash{key}++ increases the value associated with key, not the key itself.