in reply to How to access GetOpt::ArgParse arguments?
print $args->c, "\n";
Tip #4 from the Basic debugging checklist: Data::Dumper
use Data::Dumper; $Data::Dumper::Sortkeys=1; print Dumper($args); # outputs... $VAR1 = bless( { '-values' => { 'c' => '10', 'current_command' => undef, 'f' => 0, 'help' => 0, 'no_f' => 1, 'no_help' => 1 } }, 'Getopt::ArgParse::Namespace' );
Note: your code does not compile.
|
|---|