While not trying to correct your code, I'll suggest that this expression always returns true. A key in a hash always exists in the hash!foreach $_ (keys (%list)){ if (exists $list{$_}){
-- Randal L. Schwartz, Perl hacker
In reply to Re: matching input to hash keys
by merlyn
in thread matching input to hash keys
by jerrygarciuh
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |