my $RowCount = 0; while (<@Data>){ $AssetRecord = $ExcelColumns[$RowCount] => $Data[$RowCount]; $RowCount ++; }