Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
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 ( #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? | Other CB clients
Other Users?
Others imbibing at the Monastery: (3)
As of 2023-09-24 21:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?