If the data is indeed CSV, and not pipe-separated, most monks would use a CSV parser and write
while (my $row = $csv->getline ($fh)) { $row->[0] eq "A.SERIAL_NUMBER||" and next; :
Giving the OP's code, I seriously doubt however that it is a CSV file.
If the file is a pipe-separated-value file, that can also be read with Text::CSV or Text::CSV_XS.
In reply to Re^2: Skip a row of csv file.
by Tux
in thread Skip a row of csv file.
by Pan20
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |