JackTheRussel
Programmer
Hi.
I have simple Getopt module where I can give inputs in command line:
And I can insert values like this:
./program.pl -t 10:20 -t 11:20 -n John
My guestion is: How I can find out what parameters user has given ? Has Getopt module somekind table (like ARGV) where it stores parameters and values what user has given ?
I have simple Getopt module where I can give inputs in command line:
Code:
my $opt = new Getopt::Compact
(name => 'program',
struct =>
[[[qw(t time)], qq(start and end time), '=s', \@days],
[[qw(n name)], qq(persons name), '=s', \$name],
]
)->opts;
And I can insert values like this:
./program.pl -t 10:20 -t 11:20 -n John
My guestion is: How I can find out what parameters user has given ? Has Getopt module somekind table (like ARGV) where it stores parameters and values what user has given ?