I am using two arrays (one that holds keys and one that holds values) to build a hash in Perl. I need to count and delete the repeated key/value pairs so that I have a unique hash. Then I have to build a hash of hashes of the form: ((key,value), count).
I am using this line to build the hash from the arrays.
@hash{@keys} = @values;
This will keep repeated key/value pairs in the hash which I do not want. Any help in creating the hash of hashes is appreciated. Thanks.
((key,value), count)
). A Key/Value pair can't be a hash key, has to be a string - Mathias R. Jessen