Hi
I ran your code with the permute option and it worked for me. Can you post your command line call?
use Getopt::Long;
Getopt::Long::Configure("permute");
my $export = 0;
my $exportfile = "";
GetOptions(
"convert" => \$convert,
"export" => \$export,
"exportfile=s" => \$exportfile,
"<>" => \&badarg,
);
sub badarg
{
my $badparm = $_[0];
print"badarg $badparm\n";
}
__DATA__
>get_opt.pl --convert --export --exportfile temp.txt blah blah
badarg blah
badarg blah
this was under both AS 5.6.1 and 5.8.4
- j