- Read the CSV file in line by line.
- Change one line at a time to include the new field/column.
- Append one line at a time to a new CSV file.
- At the end rename the new CSV file.
Do as Zhris says, but use Text::CSV_XS to parse the file...
Steve
[small]"Every program can be reduced by one instruction, and every program has at least one bug. Therefore, any program can be reduced to one instruction which doesn't work." (Object:erlDesignPatterns)[/small]
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.