http://www.perlmonks.org?node_id=265139


in reply to Need help fixing AppConfig error ("global_password: no such variable")

there are two possibilities:

  • ovverriding the error handler
  • my $config = AppConfig->new({ GLOBAL => { ARGCOUNT => ARGCOUNT_ONE, DEFAULT => "", }, CREATE => 1, ERROR => sub {} });

  • defining the parameter manually
  • # config parameters that could eventually be empty $config->define (qw ( global_password ) );
    the second alternative is definitely to prefer.