$prices{'pizza'} = 12.00; $prices{'coke'} = 1.25; $prices{'sandwich'} = 3.00; if (exists($prices{'cok'})) { print "found the key 'cok' in the hash\n"; }
In reply to Check if key exist in hash but not exact match by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |