if (/$hash{$whatever}/) { do something; } #### %SampleHash ( 'whatever' => 'whatever', 'whoever' => 'whoever', ) #### if($SampleHash{$string}){ ... } #### foreach(LIST) { $checked{$_}++; } if($checked{$string}) { ... } #### @checked{LIST} = (); if(exists $check{$string}) { ... }