Config::Setting::Fileprovider

lib::Config::Setting::UserPContributed Pelib::Config::Setting::FileProvider(3)



NAME
       Config::Setting::FileProvider - return the contents of files.

SYNOPSIS
         use Config::Setting::FileProvider;
         my $p = Config::Setting::FileProvider->new(Env => "MYRCFILES",
                                                    Paths => ["/etc/myrc",
                                                              "~/.myrc"]);
         my @contents = $p->provide();


DESCRIPTION
       The Config::Setting::FileProvider module presents an interface to file
       contents.  It returns the contents of various files, in order to the
       application that requests it.

       It is not intended that this class be used standalone, rather that it
       be used as part of the Config::Setting module.

METHODS
       new ( ARGS )
           Create a new Config::Setting::FileProvider object.  ARGS is a set
           of keyword / value pairs.  Recognised options are:

       o       Env

               The name of an environment variable to look at.  If it exists,
               it will contain a colon separated list of paths to settings
               files.

       o       Paths

               A list of file paths to be used, in order, for settings files.

           In both Env and Paths, you may use the tilde-notation ("~") to
           specify home directories.

           Any Env settings files will be looked at after any Paths settings
           files.

           It is reccomended that you specify both parameters in the
           constructor.

       init ( )
           Internal use only.

       tildesubst ( )
           Internal use only.

       provide ( )
           Return a list containing file contents.

AUTHOR
       Dominic Mitchell, <dom@happygiraffe.net>

SEE ALSO
       Config::Setting(3).


















3rd Berkeley Distribution    perl 5.005, lib::Config::Setting::FileProvider(3)