Catmandu::Env(3pm)
π Catmandu::Env π
okay so bestie, welcome to Catmandu::Env(3pm) β the little config-loading bestie from the User Contributed Perl Documentation collection. She's giving A catmandu configuration file loader, and honestly? She ate. π
β¨ NAME β¨
Catmandu::Env</purgle> β it's A catmandu configuration file loader. That's the whole vibe. She loads your config, she minds her business, she slays. π
πΈ SYNOPSIS πΈ
okay so here's how you'd actually use her:
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;
look at her go β¨ new her up with some load_paths, then pull out a store, an importer, an exporter, a fixer, or the whole config. iconic behavior, no notes. π«Ά
π¦ DESCRIPTION π¦
So what's she actually doing? This class loads the catmandu.*.pl, catmandu.*.json, catmandu.*.yml and catmandu.*.yaml files from all the provided load_paths. All of them. Every single one. She's thorough like that. π
But here's the tea, bestie: programmers are advised not to use this class directly. I know, I know, she's right there and she's gorgeous, but please β use the equivalent functionality provided in the Catmandu package instead:
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;
fr fr β same energy, same results, just through the front door instead of climbing in the window.Catmanduis the main character here;Catmandu::Envis lowkey the stagehand making it all happen backstage. π
π SEE ALSO π
Catmanduβ go hang out with her instead, she's the one you actually want. π
and that's the whole page, bestie!! πβ¨
cute sign-off time: this lil legend comes to you from perl v5.40.1, dated 2026-01-24, and she's part of the User Contributed Perl Documentation. π stay hydrated, read your docs, and load your configs responsibly ππ¦πΈ
π¦ where this page comes from
- ubuntu resolute: libcatmandu-perl 1.2025-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libcatmandu-perl 1.2025-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms