File::UserConfigGet a user's existing config directory, or copy in defaults | |
Download |
File::UserConfig Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Adam Kennedy
- Publisher web site:
- http://search.cpan.org/~adamk/
File::UserConfig Tags
File::UserConfig Description
Get a user's existing config directory, or copy in defaults File::UserConfig is a Perl module to get a user's existing config directory, or copy in defaults. # The most simple Do What I Mean usage. $configdir = File::UserConfig->configdir; # Or without taking advantage of convention-based defaults $configdir = File::UserConfig->new( dist => 'My-Application', module => 'My::Application', dirname => '.myapp', sharedir => $defaults_here, )->configdir;Many modules or applications maintain a user-spec configuration data directory. And the implementation pattern is generally the same.A directory like /home/myuser/.application is created and populating by a set of default files the first time an application runs, and from there on, the files in that directory are modified.File::UserConfig provides standard, light and sub-classable default implementation of this concept that Does The Right Thing with the directory names. Requirements: · Perl
File::UserConfig Related Software