in reply to Text::CSV
On reading, I created multilines as
while ( my $line = $csv->getline($fh) ) { # Manipulation of unsorted fields during import my @multiline = join(';',@{$line}); push @content, @multiline ; } if (not $csv->eof) { $csv->error_diag(); }
with csv object created as $csv = Text::CSV->new({ binary => 1, auto_diag => 1, sep_char => ';' });for my $line (@result) { my @fields = split(/;/,$line); # Manipulation of sorted fields during export print $fh "$_;" foreach @fields; print $fh "\n"; }
I.e. I never bothered to try using the module for writing back data, nor other suggestions as from above :)
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Text::CSV
by Anonymous Monk on Aug 20, 2014 at 14:32 UTC | |
by wilmer_t (Novice) on Aug 25, 2014 at 20:23 UTC |