How about posting a few lines of the csv that are causing the problem. Also post what the program output looks like when it prints the extra newline.
Another option is to try Text::CSV. Maybe there is some special formatting in the csv file your program isn't handling.
In reply to Re: print last array element without a new line
by Lotus1
in thread print last array element without a new line
by sy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |