I am using the insert command and I get the error,
Undefined subroutine &main::X12LINE called at ghxEDM_sh line 112, <X12> line 1.
The code is,
elsif ($temp[0] eq "PID") {
$description = $temp[5];
## save the line record
insert into jcarrott.X12LINE($company, $invoice,
$invoice_dte, $po_number, $line_nbr, $item,
$ven_item, $description, $qty, $uom, $price_cd,
$price);
commit;
}
The table was created with a SQL statement and it is there.
Is there a special way to do inserts in Perl?
Undefined subroutine &main::X12LINE called at ghxEDM_sh line 112, <X12> line 1.
The code is,
elsif ($temp[0] eq "PID") {
$description = $temp[5];
## save the line record
insert into jcarrott.X12LINE($company, $invoice,
$invoice_dte, $po_number, $line_nbr, $item,
$ven_item, $description, $qty, $uom, $price_cd,
$price);
commit;
}
The table was created with a SQL statement and it is there.
Is there a special way to do inserts in Perl?