|
|
| "be consistent" | |
| PerlMonks |
Getting the Value of a single hash keyby Anonymous Monk |
| on May 06, 2003 at 19:29 UTC ( [id://256003]=perlquestion: print w/replies, xml ) | Need Help?? |
|
Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Hello Monks,
I'm trying to finish a simple script that first builds a key/value hash. I will then query the hash to test the equality of a value with a new given value. I don't understand why this doesn't work: if(($hash{$key}) eq $value) Any ideas?
Back to
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||||||||||||||