logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Catmandu::Env - A catmandu configuration file loader

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;

Name

       Catmandu::Env - A catmandu configuration file loader

See Also

       Catmandu

perl v5.40.0                                       2025-01-17                                 Catmandu::Env(3pm)

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;

See Also