AppConfig::Std

AppConfig::Std is a Perl subclass of AppConfig that provides standard options.
Download

AppConfig::Std Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Neil Bowers
  • Publisher web site:
  • http://search.cpan.org/~neilb/AppConfig-Std-1.07/lib/AppConfig/Std.pm

AppConfig::Std Tags


AppConfig::Std Description

AppConfig::Std is a Perl subclass of AppConfig that provides standard options. AppConfig::Std is a Perl subclass of AppConfig that provides standard options.SYNOPSIS use AppConfig::Std; $config = AppConfig::Std->new(); # all AppConfig methods supported $config->define('foo'); # define variable foo $config->set('foo', 25); # setting a variable $val = $config->get('foo'); # getting variable $val = $config->foo(); # shorthand for getting $config->args(@ARGV); # parse command-line $config->file(".myconfigrc") # read config fileAppConfig::Std is a Perl module that provides a set of standard configuration variables and command-line switches. It is implemented as a subclass of AppConfig; AppConfig provides a general mechanism for handling global configuration variables.The features provided by AppConfig::Std are:Standard command-line arguments: -help, -doc, -version, -verbose, and -debug. AppConfig::Std handles the -help, -doc, and -version switches for you, so you don't need to duplicate that code in all of your scripts. These are described below.The ARGCOUNT default is set to 1. This means that by default all switches are expected to take a value. To change this, set the ARGCOUNT parameter when defining the variable: $config->define('verbose', { ARGCOUNT => 0 } );Please read the copious documentation for AppConfig to find out what else you can do with this module. Requirements: · Perl


AppConfig::Std Related Software