Catmandu::Env(3pm)

πŸ“¦
version 1.2025 Β· 4 versions
, in ubuntu resolute, ubuntu stonking

πŸ’– 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. Catmandu is the main character here; Catmandu::Env is 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