S
Sunil
All,
I am trying to use GetOptions to get the values corresponding to options
in a string like in
####################################################
my $eval_string = '@ARGV = qw (' . "$scriptOptions" . ' )' ;
eval $eval_string;
GetOptions("fwk=s" => \$framework,
"mode=s" => \$errMode,
"args=s" => \@arguments,
"comments=s" => \$comments );
####################################################
The problem I am having is that if $scriptOptions contains something
like -comments="this is a comment", I get only "this as the comment as
GetOptions does not take kindly to option values having spaces. Is there any
workaround for this?
Thanks,
Sunil.
I am trying to use GetOptions to get the values corresponding to options
in a string like in
####################################################
my $eval_string = '@ARGV = qw (' . "$scriptOptions" . ' )' ;
eval $eval_string;
GetOptions("fwk=s" => \$framework,
"mode=s" => \$errMode,
"args=s" => \@arguments,
"comments=s" => \$comments );
####################################################
The problem I am having is that if $scriptOptions contains something
like -comments="this is a comment", I get only "this as the comment as
GetOptions does not take kindly to option values having spaces. Is there any
workaround for this?
Thanks,
Sunil.