"Unknown option" with Getopt::Long

Posted by bobinyec on 2011-11-24 07:33
Forums: ActivePerl discussion | OS: Windows

I can't seem to be able to pass options on the command line. I have:

Fred.pl

use Getopt::Long;
my $s;
GetOptions("s" => \$s);

The invocation is perl Fred.pl --s

The error I get is: Unknown option: s

The version of ActivePerl is v5.14.2.

What am I doing wrong?

Thanks,
John Bobinyec