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

# Catmandu::Env(3pm)

A catmandu configuration file loader

## NAME

Catmandu::Env - A catmandu configuration file loader

## SYNOPSIS

```
    use Catmandu::Env;
    my $env = Catmandu::Env->new(load_paths => [ '/etc/catmandu '] );
    my $env = Catmandu::Env->new(load_paths => [ ':up'] );
    my $store    = $env->store('mongodb');
    my $importer = $env->importer('loc');
    my $exporter = $env->exporter('europeana');
    my $fixer    = $env->fixer('my_fixes');
    my $conf     = $env->config;
```

## DESCRIPTION

This class loads the catmandu.\*.pl, catmandu.\*.json, catmandu.\*.yml and catmandu.\*.yaml file from all provided load\_paths. Programmers are advised *not* to use this class directly  but use the equivalent functionality provided in the Catmandu package:

```
     Catmandu->load('/etc/catmandu');
     Catmandu->load(':up');
     my $store    = Catmandu->store('mongodb');
     my $importer = Catmandu->importer('loc');
     my $exporter = Catmandu->exporter('europeana');
     my $fixer    = Catmandu->fixer('my_fixes');
     my $conf     = Catmandu->config;
```

## SEE ALSO

Catmandu
