in reply to Re^3: Reading Multiple lines
in thread Reading Multiple lines

sorry I missed that the comma in that example. it should be.

input:
"data", "data" ,"data", "data","data", "data"
"data", "data" ,"data", "data
with new line
","data", "data"
"data", "data" ,"data", "data","data", "data"

output:
"data", "data" ,"data", "data","data", "data"
"data", "data" ,"data", "data with new line","data", "data"
"data", "data" ,"data", "data","data", "data"

All I am doing at this stage is making sure that the line
ends with a quotation mark. I would prefer not to use the TEXT::CSV module as this will be used on a server
that I don't have permissions to load modules.

Replies are listed 'Best First'.
Re^5: Reading Multiple lines
by Anonymous Monk on Oct 15, 2008 at 09:52 UTC
    Get permission, its much easier than re-inventing wheels (esp. when you're having problems doing it). Try (cut/paste) Text::CSV_PP - Text::CSV_XS compatible pure-Perl module