NAME
config - Perl module constant configurator
VERSION
1.4.4
SYNOPSIS
lib/Weapons.pm file:
package Weapons;
use config DAGGER => "mizericordia";
1;
.config.pm file:
package config;
config Weapons => (
DAGGER => "horn",
);
1;
What should happen:
use lib 'lib';
use Weapons;
Weapons::DAGGER # => horn
DESCRIPTION
use config
creates a constant in the same way as use constant
, but takes the value from the project's local config file if one is specified there.
The config file ./.config.pm is located in the root directory of the project.
The current directory in the project must correspond to the project root.
Since the config.pm
pragma module is overridden on <metacpan.org> by the config.pod
file from the WordNet-Similarity
package, this manual is used ([config::Manual](blob/master/lib/config/ Manual.md)).
AUTHOR
Yaroslav O. Kosmina mailto:dart@cpan.org
LICENSE
⚖ Perl5
COPYRIGHT
The config module is copyright (c) 2023 Yaroslav O. Kosmina. Rusland. All rights reserved.