while (my ($fileh, $repoch) = each(%radar)){ if ($ltgepoch == $repoch) { ... } } #### if (exists($radar{$ltgepoch})) { ... }