NAME

Catmandu::Importer - Namespace for packages that can import

SYNOPSIS

use Catmandu::Importer::JSON;

my $importer = Catmandu::Importer::JSON->new(file => "/foo/bar.json");

my $n = $importer->each(sub {
    my $hashref = $_[0];
    # ...
});

DESCRIPTION

A Catmandu::Importer is a stub for Perl packages that can import data from an external source (a file, the network, ...).

METHODS

new(file => $file , encoding => $encoding )

new(fh => $fh)

count

each(&callback)

...

Every Catmandu::Importer is a Catmandu::Iterable all its methods are inherited.

SEE ALSO

Catmandu::Iterable