Man pages sections > man3 > Catmandu::Importer::Multi

Catmandu::Importer::Multi - Chain multiple importers together

Catmandu::Importer::Multi(3pm) User Contributed Perl Documentation Catmandu::Importer::Multi(3pm)

NAME

Catmandu::Importer::Multi - Chain multiple importers together

SYNOPSIS

    use Catmandu::Importer::Multi;
    my $importer = Catmandu::Importer::Multi->new(importers => [
        Catmandu::Importer::Mock->new,
        Catmandu::Importer::Mock->new,
    ]);
    my $importer = Catmandu::Importer::Multi->new(
        'importer1',
        'importer2',
    );
    # return all the items of each importer in turn
    $importer->each(sub {
        # ...
    });

METHODS

Every Catmandu::Importer is a Catmandu::Iterable all its methods are inherited.
2017-10-01 perl v5.26.0