Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Text::CSV

by wilmer_t (Novice)
on Aug 20, 2014 at 13:33 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2024-03-29 06:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found