in reply to AppConfig help requested
my $config = AppConfig->new({ 'CASE' => 1 }); $config->define("foo");
You can also set per-variable parameters for the configuration file in the following manner:
$config->define("foo", { 'DEFAULT' => "localhost:8080", 'CMDARG' => [ "-p" ], 'ARGCOUNT' => 1 });
This definition of configuration file variables is described in the documentation for this module under the heading "Defining Variables".
In my previous usage of this module, I actually found this requirement for definition of each configuration file variable individually quite annoying and so wrote up a base class which I called Local::Config - an extension to App::Config.
perl -e 's&&rob@cowsnet.com.au&&&split/[@.]/&&s&.com.&_&&&print'
|
|---|