Text::CSV_Multiline - comma-separated values manipulation routines
use Text::CSV_Multiline; # reading in a CSV file while (my @values = csv_read_record(\*STDIN)) { # do stuff } # writing a CSV file foreach my $data (@rows) { csv_write_record(\*STDOUT, @$data); }
This is a very simple comma-separated-value (CSV) file reader and writer. At the time it was created, the standard Text::CSV module could not handle fields that had embedded newline codes, thus this module was written which could handle "multiple lines" in a single CSV field.
It appears that newer versions of Text::CSV have added the capability, though I have not tested it to see if it meets my needs. Anyway, I already have several projects that use this module, so I am maintaining this for just a little longer.
csv_quote() csv_unquote() csv_read_record() csv_write_record()
Text::CSV
Jason Long - jlong@messiah.edu
Copyright (C) 2007,2011 by Jason Long, Messiah College
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available.
To install Text::CSV_Multiline, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Text::CSV_Multiline
CPAN shell
perl -MCPAN -e shell install Text::CSV_Multiline
For more information on module installation, please visit the detailed CPAN module installation guide.