while (my $currentlist_row = $currentlist_csv->getline_hr($currentlist_fh)) { #### } } } # MasterID.currentlist has not been found in pre_historical if (not $found) {