Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^2: Skip a row of csv file.

by Tux (Abbot)
on May 04, 2012 at 06:15 UTC ( #968865=note: print w/replies, xml ) Need Help??


in reply to Re: Skip a row of csv file.
in thread Skip a row of csv file.

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.


Enjoy, Have FUN! H.Merijn

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://968865]
help
Chatterbox?
[marto]: glad mine can't do this
[choroba]: sell to whom? Burglars?
[marto]: think targeted ads
[marto]: "your house is so big, consider product XYZ", "You clean a lot, consider product ABC"
Discipulus your house is so small, accept dollars from nigeria

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (4)
As of 2017-07-26 11:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (390 votes). Check out past polls.