in reply to hash confusion
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. - jif ( $hash{$1} eq $2 ) { print "$1 is in hash with a value of $2\n"; }
|
---|
In Section
Seekers of Perl Wisdom