in reply to Battling Getopt::Long
Change
tomy %opts = (); my %opts=(GetOptions( 'help|?' => \$help, 'server' => \$server, 'user' => \$user, 'password' => \$password ));
and use the variables directly, not the hash.GetOptions( 'help:+' => \$help, 'server=s' => \$server, 'user=s' => \$user, 'password=s' => \$password, );
Edit: fixed the code according to the follow-up postings.
should get you started
regards,
tomte
An intellectual is someone whose mind watches itself.
-- Albert Camus
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Battling Getopt::Long
by Smaug (Pilgrim) on May 11, 2004 at 12:53 UTC | |
by Tomte (Priest) on May 11, 2004 at 12:57 UTC |