DOKK / manpages / debian 12 / libcatmandu-perl / Catmandu::Importer::Multi.3pm.en
Catmandu::Importer::Multi(3pm) User Contributed Perl Documentation Catmandu::Importer::Multi(3pm)

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

    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 {
        # ...
    });

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

2023-03-03 perl v5.36.0