while (!eof(INPUT)) { $record = ; my @records = split(/\|/, $record); for (my $i=0; $idoQuery($report->{insertSQL}, $reportDate, @records); }