Catmandu::Importer::TSV(3pm) | User Contributed Perl Documentation | Catmandu::Importer::TSV(3pm) |
Catmandu::Importer::TSV - Package that imports tab-separated values
# From the command line # convert a TSV file to JSON catmandu convert TSV to JSON < journals.tab # Or in a Perl script use Catmandu; my $importer = Catmandu->importer('TSV', file => "/foo/bar.tab"); my $n = $importer->each(sub { my $hashref = $_[0]; # ... });
This package imports tab-separated values (TSV). The object fields are read from the TSV header line or given via the "fields" parameter.
Every Catmandu::Importer is a Catmandu::Iterable all its methods are inherited. The methods are not idempotent: CSV streams can only be read once.
Catmandu::Exporter::TSV
2023-03-03 | perl v5.36.0 |