Help for this page

Select Code to Download


  1. or download this
    use strict;
    use AppConfig qw(:argcount);
    ...
    $temp_conf->args();
    # parse conf file (path specified in CLI args, otherwise use default)
    $temp_conf->file( $temp_conf->config_file() );
    
  2. or download this
    # save the CLI args
    my @CLI = @ARGV;
    ...
    $temp_conf->file( $temp_conf->config_file() );
    # reinforce those CLI args!
    $temp_conf->args(\@CLI);