Help for this page

Select Code to Download


  1. or download this
        while ( my $line = $csv->getline($fh) ) {
            # Manipulation of unsorted fields during import
            my @multiline = join(';',@{$line});
    ...
        if (not $csv->eof) {
            $csv->error_diag();
        }
    
  2. or download this
        for my $line (@result) {
            my @fields = split(/;/,$line);
    ...
            print $fh "$_;" foreach @fields;
            print $fh "\n";
        }
    
  3. or download this
    $csv = Text::CSV->new({ binary => 1, auto_diag => 1, sep_char => ';' });