Have you tried printing the return value of your substr function? That might offer a clue.
For what it's worth, while this solution will work (once you get the length right), I think most monks would use a regex:
if( $data[0] =~ /^A\.SERIAL_NUMBER\|\|/ ){Aaron B.
My Woefully Neglected Blog, where I occasionally mention Perl.
In reply to Re: Skip a row of csv file.
by aaron_baugher
in thread Skip a row of csv file.
by Pan20
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |