niku has asked for the wisdom of the Perl Monks concerning the following question:
this is the output of the program
./strew.pl --help Use of uninitialized value in concatenation (.) or string at ./strew.p +l line 65. config: ""
Below is code from where I'm dealing w/ command line args.
use Getopt::Long; use Config::Auto; #use Data::Dumper; my @servers = (); my @commands = (); my @files = (); my $user = $ENV{USER}; my $file = (); my $dest = (); my $help = (); my $config = () ; GetOptions ("user=s" => \$user, "server=s" => \@servers, "command=s" = +> \@commands, "file=s" =>\$file, "dest=s"=> \$dest, "config" => \$con +fig, "help" => \$help); print "config: \"$config\"\n";
Thanks!!,
Nick
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Problem with GetOpts::Long
by Mr. Muskrat (Canon) on Mar 21, 2003 at 23:00 UTC | |
by niku (Initiate) on Mar 21, 2003 at 23:06 UTC | |
by jasonk (Parson) on Mar 21, 2003 at 23:17 UTC | |
by niku (Initiate) on Mar 22, 2003 at 00:52 UTC | |
by hossman (Prior) on Mar 22, 2003 at 02:53 UTC | |
by jdporter (Paladin) on Mar 22, 2003 at 06:55 UTC | |
|
Re: Problem with GetOpts::Long
by jasonk (Parson) on Mar 21, 2003 at 23:03 UTC |