in reply to Options always prints 1

Since you haven't specified that -smm should take a value, it is being taken as a "simple" (ie. boolean) option. And as you've supplied it on the command line, it will be set to true. And true is often represented as 1 in Perl.

If your intent is that c:\files should be taken as the value for -smm, the you should specify that as -ssm=s in te call to GetOptions().


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.