|
NAMEConfig::Setting::FileProvider - return the contents of files.SYNOPSISuse Config::Setting::FileProvider; my $p = Config::Setting::FileProvider->new(Env => "MYRCFILES", Paths => ["/etc/myrc", "~/.myrc"]); my @contents = $p->provide(); DESCRIPTIONThis class 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
In both Env and Paths, you may use the tilde-notation ("~") to specify home directories. Any files specified in Paths will also have an identical file searched for but with the hostname specified. This should make per-host customization simpler. Any Env settings files will be looked at after any Paths settings files. It is reccomended that you specify both parameters in the constructor.
AUTHORDominic Mitchell, <cpan (at) happygiraffe.net>SEE ALSOConfig::Setting.
Visit the GSP FreeBSD Man Page Interface. |