---
name: "Catmandu::Importer::Multi"
section: "3pm"
platform: "linux"
package: "libcatmandu-perl"
version: "1.2024-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/Catmandu::Importer::Multi"
---

# Catmandu::Importer::Multi(3pm)

Chain multiple importers together

## 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.
