use Getopt::Long; our @opt_c; GetOptions("c=s@"); print join ", ", @opt_c;