in reply to Why is my GetOptions() Not Working?

%Options will only be filled with parameters from the command line; everything else is left alone. If you need to provide default values, initialise them in %Options:
my %Options = ("Verbose" => 0, User => 'user', Password => 'password', + ...); # other code

Replies are listed 'Best First'.
Re^2: Why is my GetOptions() Not Working?
by NateTut (Deacon) on Mar 31, 2005 at 22:03 UTC
    The problem is that my command line parameters are not getting into %Options. Does GetOptions require a leading '-' or '--' on the command line parameters?
      Either should work. Post how you are calling your script, including the parameters.
        See the update. You were correct I was specifying parameters without '-'s. Is there any way around requiring the '-'s?
          A reply falls below the community's threshold of quality. You may see it by logging in.