On 7/23/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
Hi I'm trying to use multiple options with GetOptions
snip
Both of the ways specified in the manual work for me: #!/usr/bin/perl use warnings; use strict; use Getopt::Long; @ARGV = qw<--library foo --library bar>; my @libfiles; GetOptions ("library=s" => [EMAIL PROTECTED]); print map { "[$_]\n" } @libfiles; @ARGV = qw<--library foo --library bar>; my $aref; GetOptions ("library=s@" => \$aref); print map { "[$_]\n" } @$aref; -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/