in reply to How to use split() in perl to ignore white space and ','

Welcome iamnewbie

For something this simple, given that you've only supplied limited information, I wouldn't advise going so far as to include a CSV parsing module just for that - assuming of course that your input is in fact a .CSV delimited file.

I would use the split and a small regex to split your input seperated by commas in the vein of something like...

while<> { my @arr = split(/,/,$_); printf ("%s\n",$arr[0]); printf ("%s%s\n",$arr[1],$arr[2]); printf ("%s\n",$arr[3]); }

Output prints the first part of array to one line, the 2nd and 3rd to a second line and the last to another. This of course would be a specific possible solution to you specific question, there are many things assumed in this solution - So apologies if this doesn't solve your problem, or is unclear in anyway.

Hope this helps - All the best