Acme-CPANModules-WorkingWithCSV
view release on metacpan or search on metacpan
NAME
Acme::CPANModules::WorkingWithCSV - List of modules/applications to work
with CSV (comma-separated value) data in Perl
VERSION
This document describes version 0.003 of
Acme::CPANModules::WorkingWithCSV (from Perl distribution
Acme-CPANModules-WorkingWithCSV), released on 2023-10-31.
DESCRIPTION
The following are tools (modules and scripts) to work with the CSV
format:
Parsing
First things first, the most important module to work with CSV in Perl
is Text::CSV (which will use Text::CSV_XS backend when possible but fall
back to Text::CSV_PP otherwise). It's not in core, but only a cpanm
command away.
Generating CSV from Perl array/structure
Text::CSV (as well as Text::CSV_XS) can render a line of CSV from Perl
array(ref) with their say() method.
dd2csv from App::CSVUtils
Perinci::CmdLine framework can render function result (CLI output) as
CSV.
Converting to/from other formats
*INI*: ini2csv from App::TextTableUtils
*TSV*: csv2tsv and Ltsv2csv from App::CSVUtils
*LTSV*: csv2ltsv from App::CSVUtils and Lltsv2csv from App::LTSVUtils
*XLS* and *XLSX*: csv2tsv and tsv2csv from App::CSVUtils
*JSON*: csv2json and json2csv from App::TextTableUtils
*Markdown table*: csv2mdtable from App::TextTableUtils
*Org table*: csv2orgtable from App::TextTableUtils
*SQLite database*: csv2sqlite from App::SQLiteUtils
Rendering as text/ASCII table
csv2texttable from App::TextTableUtils
Changing field separator character, field quote character, and/or escape
character
csv-csv from App::CSVUtils
Adding/removing columns
csv-add-fields, csv-delete-field, csv-select-fields from App::CSVUtils
Processing columns of CSV with Perl code
csv-munge-field from App::CSVUtils
Processing rows of CSV with Perl code
Aside from the obvious Text::CSV, you can also use csv-each-row,
csv-munge-row, csv-mp from App::CSVUtils.
Merging rows from several CSV files into one
csv-setop, csv-concat from App::CSVUtils
Splitting a CSV file into several
csv-split from App::CSVUtils
Sorting CSV rows
csv-sort from App::CSVUtils
Sorting CSV columns
csv-sort-fields from App::CSVUtils
Filtering CSV columns
csv-select-fields from App::CSVUtils
Filtering CSV rows
csv-grep and csv-select-rows from App::CSVUtils
csvgrep from csvgrep
Transposing CSV
csv-transpose from App::CSVUtils
Summing and averaging rows
csv-sum and csv-avg from App::CSVUtils
Producing frequency table from CSV
csv-freqtable from App::CSVUtils
Performing set operations (intersection, union, difference) on CSV
csv-setop from App::CSVUtils
** Other modules/unorganized
Data::CTable
ACME::CPANMODULES ENTRIES
Text::CSV
Author: ISHIGAKI <https://metacpan.org/author/ISHIGAKI>
Text::CSV_XS
Author: HMBRAND <https://metacpan.org/author/HMBRAND>
Text::CSV_PP
Author: ISHIGAKI <https://metacpan.org/author/ISHIGAKI>
App::CSVUtils
Author: PERLANCAR <https://metacpan.org/author/PERLANCAR>
Perinci::CmdLine
Author: PERLANCAR <https://metacpan.org/author/PERLANCAR>
App::TextTableUtils
Author: PERLANCAR <https://metacpan.org/author/PERLANCAR>
App::LTSVUtils
Author: PERLANCAR <https://metacpan.org/author/PERLANCAR>
App::SQLiteUtils
Author: PERLANCAR <https://metacpan.org/author/PERLANCAR>
csvgrep
Author: NEILB <https://metacpan.org/author/NEILB>
Data::CTable
Author: CHTHORMAN <https://metacpan.org/author/CHTHORMAN>
FAQ
What is an Acme::CPANModules::* module?
An Acme::CPANModules::* module, like this module, contains just a list
of module names that share a common characteristics. It is a way to
categorize modules and document CPAN. See Acme::CPANModules for more
details.
( run in 0.676 second using v1.01-cache-2.11-cpan-39bf76dae61 )