The following module was proposed for inclusion in the Module List: modid: Getopt::FileConfig DSLIP: RdpOp description: Define options and defaults in a file. userid: MTADEL (Matevž Tadel) chapterid: 12 (Opt_Arg_Param_Proc) communities: Consulted with Johan Vromans.
similar: AppConfig Getopt::ArgvFile rationale: Getopt::FileConfig is an OO wrapper over Getopt::Long that allows the programmer to define command-line options, their default values, and variables where they should be stored in a simple configuration file. The value of these variables can be optionally overridden from environment variables and unconditionally from command-line arguments. There are two modules with similar functionality in category "Option, Argument, Parameter and Configuration File Processing": 1. AppConfig is a complete solution that also covers functionality of Getopt::FileConfig. It is more than 10-times bigger and correspondingly more complex. 2. Getopt::ArgvFile is much simpler than Getopt::FileConfig: it only provides a way for specifying defaults for command-line options. Compared to Getopt::ArgvFile, Getopt::FileConfig supports the following extra features: - array passed to Getopt::Long is built automatically; - variable names to which the options get stored are specified; - default values can be array and hash references, as supported by Getopt::Long. - storage of configuration entries / command-line arguments into a hash-ref is supported. enteredby: MTADEL (Matevž Tadel) enteredon: Sun Mar 13 19:56:57 2011 GMT The resulting entry would be: Getopt:: ::FileConfig RdpOp Define options and defaults in a file. MTADEL Thanks for registering, -- The PAUSE PS: The following links are only valid for module list maintainers: Registration form with editing capabilities: https://pause.perl.org/pause/authenquery?ACTION=add_mod&USERID=87500000_3b6b48813b0b038b&SUBMIT_pause99_add_mod_preview=1 Immediate (one click) registration: https://pause.perl.org/pause/authenquery?ACTION=add_mod&USERID=87500000_3b6b48813b0b038b&SUBMIT_pause99_add_mod_insertit=1 Peek at the current permissions: https://pause.perl.org/pause/authenquery?pause99_peek_perms_by=me&pause99_peek_perms_query=Getopt%3A%3AFileConfig