in reply to AppConfig help requested

The problem here is that you haven't defined the variables which should be appearing in the configuration file - With this module, you need to define each variable like this:

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'