Catmandu::Importer::Null - Null importer used for testing purposes
# On the command line catmandu convert Null --fix 'add_field(foo,bar)' # creates { "foo": "bar" } # In perl use Catmandu::Importer::Null; my $importer = Catmandu::Importer::Null->new(); my $n = $importer->each(sub { my $hashref = $_[0]; # ... });
The Null importer generated one empty record and exists. This importer can be used to test fix functions, generating a single record.
Every Catmandu::Importer is a Catmandu::Iterable all its methods are inherited.
Catmandu::Exporter::Null
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.