Catmandu::TabularExporter - base role for tabular exporters like CSV
See Catmandu::Exporter for the base functionality of this role. This role adds some functionality tailored to tabular or columnar exporters.
The fields to be mapped. Can be an arrayref, example hashref or comma separated string. If missing, the fields of the first record encountered will be used. If collect_fields is true, all fields names in the record stream will be collected first.
collect_fields
Optional custom column labels. Can be an arrayref, example hashref or comma separated string.
See fields for a description. Note that this option will cause all records in the stream to be buffered in memory.
fields
Include a header with column names. Enabled by default.
To install Catmandu, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Catmandu
CPAN shell
perl -MCPAN -e shell install Catmandu
For more information on module installation, please visit the detailed CPAN module installation guide.