Anyway, here's my attempt:
open (TEMP, "dataTemp.txt") or die "Can't open dataTemp for reading:$!"; my $offset = 0; while (read TEMP, my $tempbuf, 1500000, $offset) { my @temp = split/[\r\n\f]/, $tempbuf;
foreach my $temp(@temp)
{ my ($label,
$genre,
$catalogue_num,
$upc,
$artist,
$title,
$description,
$format,
$shop_price,
$dist_price,
$dist_1,
$dist_2,
$vendor,
$cost,
$release_date,
$special_buy,
$items_buy_unit,
$items_sell_unit,
$quant_break,
$asset_acct,
$buy,
$buy_unit_measure,
$expense_cos_account,
$inactive_item,
$income_acct,
$inventory,
$item_picture,
$minimum_level,
$selling_base_price,
$price_level_b,
$price_level_c,
$price_level_e,
$price_level_f,
$sell,
$sell_unit_measure,
$quantity_break) = split/\t/, $temp; next if $genre eq "";
my $inserts = "INSERT INTO bigdata VALUES (
'$label',
'$genre',
'$catalogue_num',
'$upc',
'$artist',
'$title',
'$description',
'$format',
'$shop_price',
'$dist_price',
'$dist_1',
'$dist_2',
'$vendor',
'$cost',
'$release_date',
'$special_buy',
'$items_buy_unit',
'$items_sell_unit',
'$quant_break',
'$asset_acct',
'$buy',
'$buy_unit_measure',
'$expense_cos_account',
'$inactive_item',
'$income_acct',
'$inventory',
'$item_picture',
'$minimum_level',
'$selling_base_price',
'$price_level_b',
'$price_level_c',
'$price_level_e',
'$price_level_f',
'$sell',
'$sell_unit_measure',
'$quantity_break')";
my $sth = $dbh->do($inserts) or warn "Can't load <TEMP> into bigdata: $!:$@";
}
$offset += 1500000;
}
close (TEMP);
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]