http://www.perlmonks.org?node_id=475841


in reply to hash confusion

if ( $hash{$1} eq $2 ) { print "$1 is in hash with a value of $2\n"; }
That's if the values of the hash are strings. Possibly you'd have to use == instead of eq if they are numbers. I'm not 100% sure based on your post, but it looks like the hash key and values have ":" and "-" in them.

- j