Tirex::Config(3pm)
π Tirex::Config π
okay bestie, welcome to Tirex::Config(3pm) β it's from the User Contributed Perl Documentation and it's literally the config girlie of the Tirex universe β¨
πΈ NAME πΈ
Tirex::Config β Configuration. that's it, that's the whole vibe. she configures. she's config. π
β¨ SYNOPSIS β¨
my $config_dir = $opts{'config'} || $Tirex::TIREX_CONFIGDIR;
my $config_file = $config_dir . '/' . $Tirex::TIREX_CONFIGFILENAME;
Tirex::Config::init($config_file);
Tirex::Config::dump_to_syslog();
my $some_var = Tirex::Config::get('some_option', $Tirex::SOME_OPTION);
π¦ DESCRIPTION π¦
these are the methods for reading the main Tirex configuration file (usually /etc/tirex/tirex.conf) and for accessing the config options inside it. no cap, that's the whole job. π
π METHODS π
π init($configfilename [,$prefix])
Loads the given config file. Dies on failure β like, actually dies, so be aware. π
If $prefix is given, all keys are prepended with $prefix and a dot. iykyk.
Also: it does not overwrite already loaded data. so if something's already there, it stays there. periodt. π
π dump_to_syslog()
Dumps the config to syslog. sending it straight to the logs, bestie. π¨β¨
π get($key [,$default [, $pattern]])
Returns the value of config key $key, or $default if the value is unset. simple. iconic.
If $pattern is available, the value is checked against it. Will croak if it doesn't match β so play nice with your pattern or she will make a whole scene. π
π§ get_int($key [,$default])
Returns the value of config key $key as an integer, or $default if the value is unset. it's giving number-coded. π₯
that's the whole page, you ate it, no crumbs π«Ά
and bestie, this little masterpiece shipped with perl v5.40.1 on 2026-08-09 β Tirex::Config(3pm), love her, follow her, she's the main character ππ
π¦ where this page comes from
- ubuntu stonking: tirex 0.8.0+ds-2build3 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms