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

Catmandu::MultiIterator - chain multiple iterators together

    my $it = Catmandu::MultiIterator->new(
        Catmandu::Importer::Mock->new,
        Catmandu::Importer::Mock->new,
    );
    # return all the items of each importer in turn
    $it->each(sub {
        # ...
    });

All Catmandu::Iterable methods are available.

2023-03-03 perl v5.36.0