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
In reply to Options always prints 1 by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |