Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: DBD::CSV - how to I coax it to read BOM prefixed files?

by afoken (Chancellor)
on May 28, 2017 at 21:54 UTC ( [id://1191450]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    
    ...
            say join(",",@a);
    }
    $sth->finish();
    
  2. or download this
    #!/usr/bin/perl
    
    ...
            say join(",",@a);
    }
    $sth->finish();
    
  3. or download this
    >perl test2.pl
    My::Text::CSV_XS -> new(@_ = (
    ...
     [for Statement "select * from test"] at test2.pl line 71, <GEN1> line
    + 1.
    
    >
    
  4. or download this
    sub apply_encoding
    {
    ...
        binmode $meta->{fh} or croak "Failed to set binary mode on $fn: $!
    +";
        }
        } # apply_encoding
    
  5. or download this
    #!/usr/bin/perl
    
    ...
            say join(",",@a);
    }
    $sth->finish();
    
  6. or download this
    >perl test3.pl
    1,2,3
    4,5,6
    >
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2024-04-24 23:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found