How can $processline[17] contain comma separated values if the file itself is a CSV? Please provide an example using actual data.
Also, do you want to skip rows (as it would seem since you have a variable called $unwantedrows) or columns (as would be logical)?