in reply to Re: Requiring option values in Getopt::Long
in thread Requiring option values in Getopt::Long

I've tried the sample script: #!/usr/local/bin/perl use Getopt::Long; my $option_test; my $result = GetOptions ( 'test=s' => \$option_test ); if (! $result) { die "Invalid option specifications"; } on two different platforms (OS X and Ubuntu, both perl 5.10) and in both cases Getopt is returning 1 (success) _even if_ the supposedly required parameter isn't provided. has this behavior in Getopt changed?
  • Comment on Re^2: Requiring option values in Getopt::Long