Catmandu::Importer - Namespace for packages that can import
use Catmandu::Importer::JSON; my $importer = Catmandu::Importer::JSON->new(file => "/foo/bar.json"); my $n = $importer->each(sub { my $hashref = $_[0]; # ... });
A Catmandu::Importer is a stub for Perl packages that can import data from an external source (a file, the network, ...).
Every Catmandu::Importer is a Catmandu::Fixable and thus provides a 'fix' parameter that can be set in the constructor. For every item returned by the generator the given fixes will be applied first.
Every Catmandu::Importer is a Catmandu::Iterable all its methods are inherited.
Catmandu::Iterable
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.