Pan20 has asked for the wisdom of the Perl Monks concerning the following question:
Hi Guys, I would like to skip a line from my database.... this is how the line starts: A.SERIAL_NUMBER||' I'm using the following code, but it doesnt seem to work, what am i doing wrong?ps. i want to ignore this line and let the data to be added to the database........
Thanks a lot guys...if(substr($data[0],0,length("A.SERIAL_NUMBER||")-1) eq "A.SERIAL_NUMBER||") { $indata++; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Skip a row of csv file.
by aaron_baugher (Curate) on May 04, 2012 at 02:43 UTC | |
by Tux (Canon) on May 04, 2012 at 06:15 UTC | |
by TomDLux (Vicar) on May 04, 2012 at 18:02 UTC | |
by aaron_baugher (Curate) on May 04, 2012 at 23:35 UTC | |
|
Re: Skip a row of csv file.
by roboticus (Chancellor) on May 04, 2012 at 13:24 UTC | |
by Pan20 (Novice) on May 08, 2012 at 06:06 UTC | |
by roboticus (Chancellor) on May 08, 2012 at 09:52 UTC | |
|
Re: Skip a row of csv file.
by flexvault (Monsignor) on May 04, 2012 at 18:30 UTC |