| 1 |
Module: |
| 2 |
Text::CSV_XS |
| 3 |
|
| 4 |
Description: |
| 5 |
Text::CSV_XS provides facilities for the composition and decomposition |
| 6 |
of comma-separated values. An instance of the Text::CSV_XS class can |
| 7 |
combine fields into a CSV string and parse a CSV string into fields. |
| 8 |
|
| 9 |
Program to process a CSV file: |
| 10 |
------------------------------ |
| 11 |
This distribution provides several examples of scripts that convert CSV |
| 12 |
files or data streams into XLS or XLSX or simply check if the CSV data |
| 13 |
is valid. It is easy to amend those scripts to do whatever the end-user |
| 14 |
actually requires. The full documentation also provides various small |
| 15 |
snippets of example code. |
| 16 |
|
| 17 |
Convert a CSV file into JSON: |
| 18 |
----------------------------- |
| 19 |
That process is described in the documentation. |
| 20 |
|
| 21 |
Copying: |
| 22 |
Copyright (c) 2007-2026 H.Merijn Brand. All rights reserved. |
| 23 |
Copyright (c) 1998-2001 Jochen Wiedmann. All rights reserved. |
| 24 |
Portions Copyright (c) 1997 Alan Citterman. All rights reserved. |
| 25 |
|
| 26 |
This program is free software; you can redistribute it and/or modify |
| 27 |
it under the same terms as Perl itself. |
| 28 |
|
| 29 |
Recent changes can be (re)viewed in the public GIT repository at |
| 30 |
https://github.com/Tux/Text-CSV_XS |
| 31 |
Feel free to clone your own copy: |
| 32 |
|
| 33 |
$ git clone https://github.com/Tux/Text-CSV_XS Text-CSV_XS |
| 34 |
|
| 35 |
or get it as a tgz: |
| 36 |
|
| 37 |
$ wget --output-document=Text-CSV_XS-git.tgz \ |
| 38 |
https://github.com/Tux/Text-CSV_XS/archive/master.tar.gz |
| 39 |
|
| 40 |
Prerequisites: |
| 41 |
perl 5.8.1 or up. |
| 42 |
|
| 43 |
Last version to support perl 5.6.x was Text::CSV_XS-1.62. |
| 44 |
You can have a working Test::More for 5.6.1 by requiring version |
| 45 |
Test::Harness-2.64 and Test::Simple-0.90 |
| 46 |
|
| 47 |
I found no easy way to get Test::More working on 5.6.0 |
| 48 |
|
| 49 |
examples/csv-check requires perl with defined-or and PerlIO, and |
| 50 |
making that work on other versions is left as an exercise to the |
| 51 |
reader. Other examples are checked against 5.8.4. For Unicode to |
| 52 |
work more or less reliable, you'd need perl 5.8.2 or newer. |
| 53 |
|
| 54 |
examples/csv2xlsx requires 5.14 or newer. |
| 55 |
|
| 56 |
Build/Installation: |
| 57 |
Standard build/installation: |
| 58 |
perl Makefile.PL |
| 59 |
make test |
| 60 |
make install |
| 61 |
|
| 62 |
Author: |
| 63 |
H.Merijn Brand <[email protected]> ( 0.25 - 2007-05-07 ..) |
| 64 |
Jochen Wiedmann <[email protected]> (.. 0.23 - 2001-10-10 ) |
| 65 |
|
| 66 |
Interface design by Alan Citterman <[email protected]> |
| 67 |
|
| 68 |
A pure-perl version Text::CSV_PP is being maintained by Kenichi |
| 69 |
Ishigaki. This module was created by Makamaka Hannyaharamitu who |
| 70 |
maintained it up to 2015. It tries to follow Text::CSV_XS as |
| 71 |
closely as possible. |
| 72 |
Do not file bugs on Text::CSV to Text::CSV_XS. |
| 73 |
|
| 74 |
Text::CSV_PP is bundled with Text::CSV which is a wrapper module |
| 75 |
over Text::CSV_XS and Text::CSV_PP that selects Text::CSV_XS if |
| 76 |
if available, and otherwise uses Text::CSV_PP. |