I have not used Getopt for a long time but I think the answer to your problem
does not exactly lie with Perl ... it is probably more shell related ... if u
put yourself in the shoes of the shell interpreter and look at the commandline
u mentioned below then why would u think that tac and toe were
Using Getopt::Long, how can i pass a value that is a
list into an scalar or array?
In the following example, I would like 'tic tac toe'
to be assigned to a scalar or array variable.
./perlscript.pl --arg1 foo --arg2 tic tac toe
GetOptions( "arg1:s" => \$arg1, "arg2:s" => \$arg2);
# $arg1 now co