Hi David, >From what I've seen, Getopt::Long default behavior is to accept either '--opt|-opt'. (Tested on Solaris 2.6 w/ Perl 5.005_03)
#### test.pl #### #!/usr/local/bin/perl use strict; use diagnostics; use Getopt::Long; my %pagerdest = (); Getopt::Long::Configure('default'); GetOptions( "pagerdest=s%" => \%pagerdest ); foreach my $keyname (sort keys %pagerdest) { print "pagerdest $keyname = $pagerdest{$keyname}\n"; } ######### > ./test.pl -pagerdest a=lkfd pagerdest a = lkfd ----- Original Message ----- From: david To: [EMAIL PROTECTED] Sent: Monday, August 26, 2002 7:03 PM Subject: Re: Having problems with AppConfig::Getopt module Karl Kaufman wrote: >> For example: >> >> # test.pl -pagerdest [EMAIL PROTECTED] is the above another typo? should it be: test.pl --pagerdest [EMAIL PROTECTED] you seem to have only one '-' in front of pagerdest? Getopt::Long uses '--' not '-' david -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]