ganeshts has asked for the wisdom of the Perl Monks concerning the following question:
and so on.-cmdline_option REG1=value1, value2, value3, value4 -cmdline_option REG2=value1, value2, value3, value4 ... -cmdline_option REG500=value1, value2, value3, value4 ...
using the following format specifier in @opt_array-cmdline_option_done REG1=Value -cmdline_option_done REG2=Value -cmdline_option_done REG3=Value ....
-cmdline_option_done=s%
my %opt = ( 'reg_ll_ul_pc_zp' => { REG1 => [0, 100, 100, 0], REG2 => [0, 100, 100, 0], REG3 => [0, 100, 100, 0], REG4 => [0, 100, 100, 0], REG5 => [0, 100, 100, 0], REG6 => [0, 100, 100, 0], }, ); my @opt_array = qw( reg_ll_ul_pc_zp=s???? ( :( ) ); GetOptions(\%opt, @opt_array);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Processing Complicated Command Line Options using Getopt
by JavaFan (Canon) on May 12, 2009 at 07:25 UTC | |
by ganeshts (Initiate) on May 12, 2009 at 07:49 UTC | |
|
Re: Processing Complicated Command Line Options using Getopt
by almut (Canon) on May 12, 2009 at 12:38 UTC | |
|
Re: Processing Complicated Command Line Options using Getopt
by ELISHEVA (Prior) on May 12, 2009 at 12:43 UTC | |
|
Re: Processing Complicated Command Line Options using Getopt
by leocharre (Priest) on May 12, 2009 at 13:31 UTC | |
|
Re: Processing Complicated Command Line Options using Getopt
by ganeshts (Initiate) on May 13, 2009 at 03:14 UTC |