Question: Why is Text::CSV no option?
Question: Ever considdered to use RegEx for acomplishing your task instead of splitting to chars and building your string?
Question: Could you please provide us with linenumbers? I can't reproduce your error-messages here
Answer: One problem I see is your "my $datastring". You want to collect your data in that scalar but clear it each time through the loop. This way you won't ever get something usefull out of your loop.
In reply to Re: Writing a CSV Parser/Printer
by Skeeve
in thread Writing a CSV Parser/Printer
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |