Have the below getoptions function. iifiles argument is optional and it can be 1 to many if provided. But when i run this function getting an error message "Error in option spec". Perl running on solaris 10. Not sure what multiple values option for iiles needs to be provided.
GetOptions( 'reportdate=s' => \$cmdParams{repDate}
,'switch=s' =>\$cmdParams{swi}
,'iiles:s{,}' => \@inputFileArray
,'h|?|help' => \$help
);