my $config = AppConfig->new( { CASE => 1, ERROR => \&my_error, GLOBAL => { DEFAULT => "", ARGCOUNT => ARGCOUNT_ONE, }, } ); #### my $config = AppConfig->new( { CASE => 1, ERROR => hanlde_errors(), GLOBAL => { DEFAULT => "", ARGCOUNT => ARGCOUNT_ONE, }, } );