Catmandu::Importer::Multi(3pm)

Catmandu::Importer::Multi3pm

Chain multiple importers together

Usage

    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.

Releases

5 releases since Debian 9 (Stretch); the text changed 4 times.

  1. 9
  2. 10
  3. 11
  4. 12
  5. 13

From libcatmandu-perl 1.2024-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.