foreach my $id (@ids2process){ $count++; my $ret = HandleIds($id); next if($ret == -1);