Text::CSV::README3pm
Encoding aware text::csv.
Usage
# Here in Perl 5.8 or later$csv = Text::CSV::Encoded->new ({encoding_in => "iso-8859-1", # the encoding comes into Perlencoding_out => "cp1252", # the encoding comes out of Perl});# parsing CSV is regarded as input$csv->parse( $line ); # $line is a iso-8859-1 encoded string@columns = $csv->fields(); # they are unicode data
Overview
This module inherits Text::CSV and is aware of input/output encodings.
Installation
This module sources are hosted on github https://github.com/singingfish/Text-CSV-Encoded and uses "Dist::Zilla" to generate the distribution. It can be istalled:
- directly
-
cpanm https://github.com/singingfish/Text-CSV-Encoded.git
- from CPAN
-
cpan Text::CSV::Encodedcpanm https://github.com/singingfish/Text-CSV-Encoded
- maualy cloninig the repository:
-
git clone https://github.com/singingfish/Text-CSV-Encoded.gitcd https://github.com/singingfish/Text-CSV-Encodedperl Makefile.PLmakemake testmake install
Requirements
This distribution requires Perl v5.8.0.
This distribution requires the following modules:
•
|
Test::Pod (version 1.41) |
|---|---|
•
|
Text::CSV (version 1.31) |
Copyright and license
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.