Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Text::CSV

by wilmer_t (Novice)
on Aug 20, 2014 at 13:33 UTC ( #1098115=note: print w/replies, xml ) Need Help??

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 => ';' });

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1098115]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2021-12-05 13:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    R or B?



    Results (31 votes). Check out past polls.

    Notices?