in reply to Parsing command line
It is nearly impossible to find an error without the code. are you sure you read perldoc Getopt::Long thouroughly?
my $s = ''; GetOptions('string=s' => \$s);
should normaly do what you want (it does for me). Maybe you forgot to pass your variable as a reference?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Parsing command line
by hotshot (Prior) on Aug 26, 2002 at 13:02 UTC | |
by Tomte (Priest) on Aug 26, 2002 at 13:29 UTC | |
by hotshot (Prior) on Aug 26, 2002 at 13:46 UTC | |
by Tomte (Priest) on Aug 26, 2002 at 13:52 UTC | |
by hotshot (Prior) on Aug 26, 2002 at 14:12 UTC | |
|