NateTut has asked for the wisdom of the Perl Monks concerning the following question:
All I get back is:use strict; use warnings; use diagnostics; use Getopt::Long; my %Options = ("Verbose" => 0); GetOptions( \%Options , "TPID=s" , "User=s" , "Password=s" , "DataFile=s" , "Table=s" , "DataBase=s" , "Sessions:i" , "Verbose=i" ) or warn("Waaaaaaahhhhhhhhh!!!!!!"); foreach (sort(keys(%Options))) { print("Options[$_][" . $Options{$_} . "]\n"); }
Which is what I initialized %Options with in the first palce. %Options is not getting filled in.Options[Verbose][0]
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Why is my GetOptions() Not Working?
by gam3 (Curate) on Mar 31, 2005 at 22:45 UTC | |
|
Re: Why is my GetOptions() Not Working?
by moot (Chaplain) on Mar 31, 2005 at 22:00 UTC | |
by NateTut (Deacon) on Mar 31, 2005 at 22:03 UTC | |
by moot (Chaplain) on Mar 31, 2005 at 22:23 UTC | |
by NateTut (Deacon) on Mar 31, 2005 at 22:41 UTC | |
by moot (Chaplain) on Mar 31, 2005 at 22:43 UTC | |
|