Perl Diver 2.33
Main Environment Variables Perl Default Values Perl Config - Summary Perl Config - Full Installed Modules List Directory uptime Docs

Module Documentation
Details and documentation about a specific module, including version and documentation (if available). Note that while links to perldoc.com and search.cpan.org are provided, the module may be part of a larger distribution. If you reach a File Not Found page on either site, please try the parent module.

App::Ack::ConfigFinder

Name App::Ack::ConfigFinder
Version
Located at /usr/share/perl5
File /usr/share/perl5/App/Ack/ConfigFinder.pm
Is Core No
Search CPAN for this module App::Ack::ConfigFinder
Documentation App::Ack::ConfigFinder
Module Details App::Ack::ConfigFinder

NAME

App::Ack::ConfigFinder


DESCRIPTION

A module that contains the logic for locating the various configuration files.


LOCATING CONFIG FILES

First, ack looks for a global ackrc.

On Windows, this is `ackrc` in either COMMON_APPDATA or APPDATA. If `ackrc` is present in both directories, ack uses both files in that order.
On a non-Windows OS, this is `/etc/ackrc`.

Then, ack looks for a user-specific ackrc if the HOME environment variable is set. This is either $HOME/.ackrc or $HOME/_ackrc.

Then, ack looks for a project-specific ackrc file. ack searches up the directory hierarchy for the first `.ackrc` or `_ackrc` file. If this is one of the ackrc files found in the previous steps, it is not loaded again.

It is a fatal error if a directory contains both .ackrc and _ackrc.

After ack loads the options from the found ackrc files, ack looks at the ACKRC_OPTIONS environment variable.

Finally, ack takes settings from the command line.


METHODS

new

Creates a new config finder.

$finder->find_config_files

Locates config files, and returns a list of them.

Perl Diver brought to you by ScriptSolutions.com © 1997- 2026