Config::Find::Unix(3pm)

Config::Find::Unix3pm

Config::find plugin for unixen

Usage

  # don't use Config::Find::Unix directly
  use Config::Find;

Abstract

Config::Find plugin for Unixen

Overview

This module implements Config::Find for Unix

The order for searching the config files is:

  1  ~/.$name                             [user]
  1b ~/.$name.conf                        [user]
  2  /$path_to_script/../etc/$name.conf   [global]
  3  /$path_to_script/../conf/$name.conf  [global]
  4  /etc/$name.conf                      [global]

although if the environment variable $ENV{${name}_HOME} is defined it does

  1  ~/.$name                             [user]
  1b ~/.$name.conf                        [user]
  2  $ENV{${name}_HOME}/etc/$name.conf    [global]
  3  $ENV{${name}_HOME}/conf/$name.conf   [global]
  4  /etc/$name.conf                      [global]

instead.

When the "several configuration files in one directory" approach is used, the order is somewhat different:

  1  ~/.$dir/$name.conf                        [user]
  2  /$path_to_script/../etc/$dir/$name.conf   [global]
  3  /$path_to_script/../conf/$dir/$name.conf  [global]
  4  /etc/$dir/$name.conf                      [global]

(also affected by $ENV{${name}_HOME})

Contributors

Barbie, <[email protected]> (some bug fixes and documentation)

Releases

6 releases since Debian 8 (Jessie); the text changed 3 times.

  1. 8
  2. 9–10
  3. 11
  4. 12–13

Author

Salvador Fandiño García, <[email protected]>

From libconfig-find-perl 0.31-3 in Debian 13 (Trixie). Parsed by carta from the page's man source.