Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Running my script with -smm option always prints "1",any idea </P
c:\perl test.pl -smm c:\files
#!/usr/bin/perl -w use strict; use warnings; use Getopt::Long; my %options=(); GetOptions (\%options, 'smm','dmm') or die("\nERROR:Invalid Option\n") +; print "\nOPTION MSM:$options{msm}\n"; #always prints as one
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Options always prints 1
by BrowserUk (Patriarch) on Apr 21, 2011 at 23:41 UTC | |
|
Re: Options always prints 1
by ikegami (Patriarch) on Apr 21, 2011 at 23:45 UTC | |
|
Re: Options always prints 1
by educated_foo (Vicar) on Apr 21, 2011 at 23:16 UTC |