Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Getopt problem

Status
Not open for further replies.

JackTheRussel

Programmer
Joined
Aug 22, 2006
Messages
110
Location
FI
Hi.

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 ?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top